[patch] Use /bin/bash instead of /bin/sh for bashisms

Jan-Benedict Glaw jbglaw at lug-owl.de
Tue Jan 3 06:46:01 UTC 2006


On Mon, 2006-01-02 21:40:25 -0500, John Kelly <jakelly at shtc.net> wrote:
> On Mon, 02 Jan 2006 10:49:27 +0100, Natanael Copa <mlists at tanael.org>
> >It didn't work with csh and tcsh.
> 
> That's irrelevant.
> 
> http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

Well, the main point is that the scripts are just used to build the
library. Reading POSIX, you *can* *not* rely on /bin/sh being a POSIX
shell. That is, you cannot rely on the shellbang. You *have* to call
scripts like  'sh myscript.sh'  to get "proper" execution, but that's
not done in all places.

The reminder is, either fix the build system to "correctly" call all
scripts, or just use constructs that work in all shells. ...and in the
cases pointed out, there's no csh-specific problems.

So explicitely writing for csh is probably just dumb, but throwing
away compatibility for no good reason is as well :)

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw at lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 für einen Freien Staat voll Freier Bürger"  | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060103/8cf48bc5/attachment-0002.pgp 


More information about the uClibc mailing list