From 9bf04c6b54186076b084d889c033973998c18eb1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 11 Oct 2004 21:42:05 +0000 Subject: [PATCH] * doc/autoconf.texi (Shellology, Special Shell Variables): Document that the Zsh problem with NULLCMD was fixed in zsh 3.1.6-dev-18. --- ChangeLog | 4 ++++ doc/autoconf.texi | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 56aa10b3..a9084056 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,10 @@ to "POSIX" or "@acronym{POSIX}"), and similarly for "DOS variants", "Unix", and some related minor wording fixups. + (Shellology, Special Shell Variables): Document that the Zsh + problem with NULLCMD was fixed in zsh 3.1.6-dev-18. Thanks + to Alexandre Duret-Lutz for this info. + 2004-10-10 Alexandre Duret-Lutz * doc/autoconf.texi (One-Shot Macros): New node. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index c38974d6..566c921b 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -9542,7 +9542,8 @@ Substitutions}). @cindex Zsh To detect whether you are running @command{zsh}, test whether @code{ZSH_VERSION} is set. By default @command{zsh} is @emph{not} -compatible with the Bourne shell: you have to run @samp{emulate sh} and +compatible with the Bourne shell: you must execute @samp{emulate sh}, +and for @command{zsh} versions before 3.1.6-dev-18 you must also set @code{NULLCMD} to @samp{:}. @xref{Compatibility,, Compatibility, zsh, The Z Shell Manual}, for details. @@ -10431,9 +10432,10 @@ $ @kbd{sed '=' foo}, @command{zsh} executes -@samp{$NULLCMD >foo}. The Bourne shell considers @code{NULLCMD} to be -@samp{:}, while @command{zsh}, even in Bourne shell compatibility mode, -sets @code{NULLCMD} to @samp{cat}. If you forgot to set @code{NULLCMD}, +@samp{$NULLCMD >foo} unless it is operating in Bourne shell +compatibility mode and the @command{zsh} version is newer +than 3.1.6-dev-18. If are using an older @command{zsh} +and forget to set @code{NULLCMD}, your script might be suspended waiting for data on its standard input. @item ENV