[SCM] GNU Autoconf source repository branch, master, updated. v2.63b-44-g780a068

"Eric Blake" <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=780a068d297868cf3dd617ef12676cbfc3a05862

The branch, master has been updated
       via  780a068d297868cf3dd617ef12676cbfc3a05862 (commit)
      from  80e62691c97560f27fcafc8e08aaf2e9f75cfabc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 780a068d297868cf3dd617ef12676cbfc3a05862
Author: Eric Blake <[email protected]>
Date:   Mon May 4 10:30:16 2009 -0600

    Document zsh bug with empty commands.
    
    * doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
    more problems with $?.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    6 ++++++
 doc/autoconf.texi |   15 +++++++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e6e8892..88f4171 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-13  Eric Blake  <[email protected]>
+
+	Document zsh bug with empty commands.
+	* doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
+	more problems with $?.
+
 2009-05-11  Patrick Welche  <[email protected]>  (tiny change)
 
 	Also try X11R7 when looking for X11 files, for NetBSD.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index a4bb429..928b417 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -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}


hooks/post-receive
-- 
GNU Autoconf source repository
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.