mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-24 10:54:42 +08:00
Document zsh bug with empty commands.
* doc/autoconf.texi (Special Shell Variables) <?>: Add mention of more problems with $?.
This commit is contained in:
parent
80e62691c9
commit
780a068d29
@ -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.
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user