Ralf Wildenhues <[EMAIL PROTECTED]> writes: >> > | elif (set -o posix) >/dev/null 2>&1; then >> > | set -o posix >> > | fi >> >> Why does this hang under AIX? Can you truss it, or strace it, or whatever? > > D'oh. It waits for stdin and finishes when given an EOF.
Does it work if you redirect from stdin? Something like this? elif (set -o posix) </dev/null >/dev/null 2>&1; then set -o posix fi I think that would be more efficient than ((set -o posix)). > * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Allow either of > `BASH_VERSION', `KSH_VERSION', or `RANDOM' as indication of ksh > or bash, to set the `posix' option. Well, if possible, I'd rather not limit our universe to bash and ksh. There might be other shells that have "set -o posix".
