Document zsh bug with empty commands.

* doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
more problems with $?.
This commit is contained in:
Eric Blake 2009-05-04 10:30:16 -06:00
parent 80e62691c9
commit 780a068d29
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2009-05-13 Eric Blake <ebb9@byu.net>
Document zsh bug with empty commands.
* doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
more problems with $?.
2009-05-11 Patrick Welche <prlw1@cam.ac.uk> (tiny change)
Also try X11R7 when looking for X11 files, for NetBSD.

View File

@ -14925,6 +14925,20 @@ underscores.
@c Alphabetical order, case insensitive, `A' before `a'.
@table @code
@item ?
Not all shells correctly reset @samp{$?} after conditionals (@pxref{if,
, Limitations of Shell Builtins}). Not all shells manage @samp{$?}
correctly in shell functions (@pxref{Shell Functions}) or in traps
(@pxref{trap, , Limitations of Shell Builtins}). Not all shells reset
@samp{$?} to zero after an empty command.
@example
$ @kbd{bash -c 'false; $empty; echo $?'}
0
$ @kbd{zsh -c 'false; $empty; echo $?'}
1
@end example
@item _
Many shells reserve @samp{$_} for various purposes, e.g., the name of
the last command executed.
@ -15850,6 +15864,7 @@ word splitting on @samp{$@{1+"$@@"@}}; see @ref{Shell Substitutions},
item @samp{$@@}, for more.
@anchor{if}
@item @command{if}
@c ---------------
@prindex @command{if}