init.sh: disqualify shells for which set -x corrupts stderr
authorJim Meyering <meyering@redhat.com>
Wed, 8 Sep 2010 13:18:46 +0000 (15:18 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 8 Sep 2010 13:20:56 +0000 (15:20 +0200)
commit37a7671494e1ffe25fc2058ba122bb85ae824090
tree403d1a95948b6ec328f30fecbec9f42bcfeb074a
parentfb5456fecc39ce2037e7968328346cf93e833a5d
init.sh: disqualify shells for which set -x corrupts stderr

* tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
and OpenBSD 4.7.  They make it so with "set -x", environment settings
appear in stderr output.  For example, this command:
    /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
prints "P=1" on those two systems:
ChangeLog
tests/init.sh