From: Ralf Wildenhues Date: Mon, 20 Feb 2006 08:41:53 +0000 (+0000) Subject: * doc/autoconf.texi (Shellology) : Document that pdksh as X-Git-Tag: AUTOCONF-2.59c~178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cff03cfc5017c952a3dd1ac94dda90152ff04466;p=thirdparty%2Fautoconf.git * doc/autoconf.texi (Shellology) : Document that pdksh as native /bin/sh may not set KSH_VERSION (seen on OpenBSD). --- diff --git a/ChangeLog b/ChangeLog index 48e36b1f6..ef4edb500 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-20 Ralf Wildenhues + + * doc/autoconf.texi (Shellology) : Document that pdksh as + native /bin/sh may not set KSH_VERSION (seen on OpenBSD). + 2006-02-15 Eric Blake * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable diff --git a/doc/autoconf.texi b/doc/autoconf.texi index d88df1212..dd5605164 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -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\"`"