LWN.net Logo

Bash 4.0 released

Bash 4.0 released

Posted Mar 6, 2009 16:57 UTC (Fri) by Duncan (guest, #6647)
In reply to: Bash 4.0 released by felixfix
Parent article: Bash 4.0 released

Yes, bash behaves differently when run as sh, but sh purists, particularly
those in the BSD and Linux embedded camps that don't necessarily have bash
installed let alone as sh, tend to have a rather long list of how buggy
bash is at actually enforcing POSIX sh mode, based on the number of
scripts they've had to deal with that were designed and tested only with
bash in sh mode, not on a real POSIX sh that actually enforces the
standard.

Thus the original comment...

(Said as one that always uses the #!/bin/bash myself, as I make no
apologies for only learning bash and not even knowing what's sh behavior
and what's not, tho thinking of turning it into the env form. Where
people are trying to use my scripts on non-bash systems, I do take
patches.)

Duncan


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds