bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] posix-shell.m4: reject Solaris 11's /bin/sh (due to umask)


From: Jim Meyering
Subject: Re: [PATCH] posix-shell.m4: reject Solaris 11's /bin/sh (due to umask)
Date: Tue, 16 Sep 2008 11:58:00 +0200

Jim Meyering <address@hidden> wrote:
> I discovered that Solaris 11's /bin/sh exhibits the following
> surprising behavior:
>
>     $ /bin/sh -c 'umask 22; (umask 0); umask'
>     0000
>
> That would cause test failures in coreutils, because gl_POSIX_SHELL
> accepted /bin/sh.  The following change is enough to make
> gl_POSIX_SHELL reject that shell and instead use /bin/bash, which
> is also provided:
>
>       posix-shell.m4: reject Solaris 11's /bin/sh (due to umask)
>       * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that
>       lets a umask modification leak out of a subshell.  Otherwise,
>       Solaris 11's /bin/sh would be accepted and thus cause unwarranted
>       failures in coreutils test suite.

I've pushed that change.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]