autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tru64 losing files.


From: Paul Eggert
Subject: Re: Tru64 losing files.
Date: Thu, 29 Jul 2004 15:32:34 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

address@hidden writes:

> Would it be sensible in any case for autoconf to try setting the
> native shell into POSIX mode first, before trying a possibly
> buggy third-party installed shell?

Yes, and it tries to do that for other shells, but we didn't know
about the BIN_SH business.  I installed this patch.

2004-07-29  Paul Eggert  <address@hidden>

        * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Set BIN_SH, for
        Tru64.
        * doc/autoconf.texi (Shellology): Mention BIN_SH.

Index: lib/m4sugar/m4sh.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/m4sugar/m4sh.m4,v
retrieving revision 1.118
diff -p -u -r1.118 m4sh.m4
--- lib/m4sugar/m4sh.m4 27 Jul 2004 20:15:15 -0000      1.118
+++ lib/m4sugar/m4sh.m4 29 Jul 2004 22:26:04 -0000
@@ -165,6 +165,7 @@ if test -n "${ZSH_VERSION+set}" && (emul
 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) 
>/dev/null 2>&1; then
   set -o posix
 fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
 DUALCASE=1; export DUALCASE # for MKS sh
 ])
 
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.823
diff -p -u -r1.823 autoconf.texi
--- doc/autoconf.texi   27 Jul 2004 20:15:15 -0000      1.823
+++ doc/autoconf.texi   29 Jul 2004 22:26:04 -0000
@@ -9390,8 +9390,21 @@ you'll need to use @command{bash} 2.05 f
 The Korn shell is compatible with the Bourne family and it mostly
 conforms to @acronym{POSIX}.  It has two major variants commonly
 called @samp{ksh88} and @samp{ksh93}, named after the years of initial
-release.  It is usually called @command{ksh}, but Solaris systems have
-three variants:
+release.  It is usually called @command{ksh}, but is called @command{sh}
+on some hosts if you set your path appropriately.
+
address@hidden @minus
address@hidden
address@hidden @samp{pdksh}
+A public-domain clone of the Korn shell called @samp{pdksh} is
+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
address@hidden by testing whether @code{KSH_VERSION} is set, and you can
+require @acronym{POSIX} compatibility by running @samp{set -o posix}.
+
address@hidden
+Solaris systems have three variants:
 @prindex @command{/usr/bin/ksh} on Solaris
 @command{/usr/bin/ksh} is @samp{ksh88},
 @prindex @command{/usr/xpg4/bin/sh} on Solaris
@@ -9403,13 +9416,14 @@ is standard on Solaris; the other varian
 packages.  There is no extra charge for these packages, but they are
 not part of a minimal OS install and therefore some installations may
 not have it.
address@hidden @samp{pdksh}
-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
address@hidden by testing whether @code{KSH_VERSION} is set, and you can
-require @acronym{POSIX} compatibility by running @samp{set -o posix}.
+
address@hidden
+Starting with Tru64 Version 4.0, the Korn shell @command{/usr/bin/ksh}
+is also available as @command{/usr/bin/posix/sh}.  If the environment
+variable @env{BIN_SH} is set to @code{xpg4}, subsidiary invocations of
+the standard shell conform to @acronym{POSIX}.
+
address@hidden itemize
 
 @item Zsh
 @cindex Zsh




reply via email to

[Prev in Thread] Current Thread [Next in Thread]