bash scripting across linux and solaris

Bill Bogstad bogstad-e+AXbWqSrlAAvxtiuMwx3w at public.gmane.org
Fri Aug 28 12:02:02 EDT 2009


On Fri, Aug 28, 2009 at 11:45 AM, David Hummel<lemmuh-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
> 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...

[For the old-timers....]

I suggest that you write for BSD 4.2 csh on the VAX.  Who needs standards.

Bill Bogstad






More information about the Discuss mailing list