Re: [PATCH] Use bash for test.sh.

Eitan Adler <[email protected]>
Newsgroups gmane.comp.compilers.ccache
Message-ID <CAF6rxgnVzQ_3O4wdpEMhpNf4iJLc+hXnan5UThfZYjwkC67ZHw@mail.gmail.com>
On 12 November 2012 13:52, Paul Smith <[email protected]> wrote:
> On Mon, 2012-11-12 at 13:11 -0500, Eitan Adler wrote:
>> #!/bin/sh  which is mandated to exist by POSIX
>
> Actually, unless there's been a change, POSIX doesn't mandate that the
> POSIX shell appear as /bin/sh.

Okay. Taking a deeper look here, I'm wrong. That said, #!/bin/sh is
certainly still more portable than #!/bin/bash and the latter is still
a portability bug.

> Unfortunately, this means that systems are free to provide definitively
> non-POSIX /bin/sh and still be allowed to paint themselves with the
> veneer of compliance (yes I'm looking at you Solaris!!), since there is
> a POSIX shell somewhere (else) on the system.

Yes, this can happen. :(




-- 
Eitan Adler
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.