* doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as

native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
This commit is contained in:
Ralf Wildenhues 2006-02-20 08:41:53 +00:00
parent f5a64f3738
commit cff03cfc50
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2006-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
2006-02-15 Eric Blake <ebb9@byu.net>
* lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable

View File

@ -9916,12 +9916,12 @@ the standard shell conform to Posix.
@prindex @samp{pdksh}
A public-domain clone of the Korn shell called @command{pdksh} is widely
available: it has most of the @samp{ksh88} features along with a few of
its own. Similarly to Bash, you can detect whether you are
running @command{pdksh} by testing whether @code{KSH_VERSION} is set,
and you can require Posix compatibility by running @samp{set
-o posix}. Unfortunately, with @command{pdksh} 5.2.14 (the latest
stable version as of January 2006) Posix mode is buggy and causes
@command{pdksh} to depart from Posix in at least one respect:
its own. It will usually set @code{KSH_VERSION}, except if invoked as
@command{/bin/sh} on OpenBSD, and similarly to Bash you can require
Posix compatibility by running @samp{set -o posix}. Unfortunately, with
@command{pdksh} 5.2.14 (the latest stable version as of February 2006)
Posix mode is buggy and causes @command{pdksh} to depart from Posix in
at least one respect:
@example
$ echo "`echo \"hello\"`"