public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Shell usage on embedded targets
@ 2010-10-27 11:24 David Peverley
  2010-10-27 11:34 ` Garrett Cooper
  0 siblings, 1 reply; 3+ messages in thread
From: David Peverley @ 2010-10-27 11:24 UTC (permalink / raw)
  To: ltp-list

Hi all,

In our embedded rootfs we have both /bin/sh provided by busybox (i.e.
a true sh) and also a /bin/bash compiled from bash.

This causes a pain as typically full systems use a symlink from sh to
bash. This breaks runltp (and probably other scritps) as they use
getopts which I *think* is technically a bash-only builtin? I've
currently re-written the hashbangs before copying to the system. For
those googling I did :
   find . -type f | xargs perl -pi -e 's/bin\/sh/bin\/bash/g'

I can't get my head around what a 'neat' solution would be other than
rewriting all to bash but I'm guessing that isn't a favoured choice
for most people? I would expect a fair response would be "don't do odd
things with your target" ;-)

Cheers,

~Pev

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-27 18:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-27 11:24 [LTP] Shell usage on embedded targets David Peverley
2010-10-27 11:34 ` Garrett Cooper
2010-10-27 18:06   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox