bash scripting across linux and solaris
David Hummel
lemmuh-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Aug 28 11:45:51 EDT 2009
On Fri, Aug 28, 2009 at 10:26 AM, Theodore Ruegsegger<gruntly-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
>
> In particular, calling it sh enforces POSIX-compliance.
Not quite. Historical versions of the Bourne shell are not
POSIX-compliant, but bash aims to be (which is the reason Debian
symlinks sh to bash). So if you call bash as sh, it tries to behave
like sh without breaking POSIX-compliance.
My suggestion would be that if you're on GNU/Linux, write for bash,
don't be afraid of it. It's a far superior shell to traditional
Bourne...
More information about the Discuss
mailing list