+2004-07-27 Paul Eggert <eggert@cs.ucla.edu>
+
+ * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Use "set -o posix"
+ with pdksh, too. Problem reported by Patrick Welche via
+ Gary V. Vaughan.
+ * doc/autoconf.texi (Shellology): Note that set -o posix is
+ useful for pkdsh, too.
+
2004-06-24 Paul Eggert <eggert@cs.ucla.edu>
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Require
@item Bash
@cindex Bash
-To detect whether you are running @command{bash}, test if
-@code{BASH_VERSION} is set. To disable its extensions and require
+To detect whether you are running @command{bash}, test whether
+@code{BASH_VERSION} is set. To require
@acronym{POSIX} compatibility, run @samp{set -o posix}. @xref{Bash POSIX
Mode,, Bash @acronym{POSIX} Mode, bash, The @acronym{GNU} Bash Reference
Manual}, for details.
A public-domain clone of the Korn shell called @samp{pdksh} is also
widely available: it has most of the @samp{ksh88} features along with
a few of its own.
+Similarly to @command{bash}, you can detect whether you are running
+@samp{pdksh} by testing whether @code{KSH_VERSION} is set, and you can
+require @acronym{POSIX} compatibility by running @samp{set -o posix}.
@item Zsh
@cindex Zsh
# is contrary to our usage. Disable this feature.
alias -g '${1+"$[@]"}'='"$[@]"'
setopt NO_GLOB_SUBST
-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
set -o posix
fi
DUALCASE=1; export DUALCASE # for MKS sh