[SCM] GNU Autoconf source repository branch, master, updated. v2.65-9-gd4fdf04

"Ralf Wildenhues" <[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=d4fdf04459e9d11b51e971f9af3451fa56fd44a9

The branch, master has been updated
       via  d4fdf04459e9d11b51e971f9af3451fa56fd44a9 (commit)
      from  b4f0a5079d7cc388094468deec96c1676af0e5f8 (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 d4fdf04459e9d11b51e971f9af3451fa56fd44a9
Author: Stefano Lattarini <[email protected]>
Date:   Sat Dec 5 12:56:30 2009 +0100

    Document Solaris/Heirloom sh set -e issue with command substitutions.
    
    * doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
    in previous example.  Document failure to honor && lists with set -e
    and a command substitution in the failing command.
    Report and initial patch by Stefano Lattarini against Automake.
    
    Signed-off-by: Ralf Wildenhues <[email protected]>

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

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

diff --git a/ChangeLog b/ChangeLog
index e03604d..1c0c612 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-12-05  Stefano Lattarini  <[email protected]>
+	    Ralf Wildenhues  <[email protected]>
+
+	Document Solaris/Heirloom sh set -e issue with command substitutions.
+	* doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
+	in previous example.  Document failure to honor && lists with set -e
+	and a command substitution in the failing command.
+	Report and initial patch by Stefano Lattarini against Automake.
+
 2009-12-04  Eric Blake  <[email protected]>
 
 	Warn if using unnamed diversion.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 7d2c72e..3144610 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -16794,12 +16794,23 @@ When @samp{set -e} is in effect, a failed command substitution in
 Solaris @command{/bin/sh} cannot be ignored, even with @samp{||}.
 
 @example
-$ @kbd{/bin/sh -c 'set -d; foo=`false` || echo foo; echo bar'}
-$ @kbd{bash -c 'set -d; foo=`false` || echo foo; echo bar'}
+$ @kbd{/bin/sh -c 'set -e; foo=`false` || echo foo; echo bar'}
+$ @kbd{bash -c 'set -e; foo=`false` || echo foo; echo bar'}
 foo
 bar
 @end example
 
+@noindent
+Moreover, a command substitution, successful or not, causes this shell to
+exit from a failing outer command even in presence of an @samp{&&} list:
+
+@example
+$ @kbd{bash -c 'set -e; false `true` && echo notreached; echo ok'}
+ok
+$ @kbd{sh -c 'set -e; false `true` && echo notreached; echo ok'}
+$
+@end example
+
 Portable scripts should not use @samp{set -e} if @command{trap} is used
 to install an exit handler.  This is because Tru64/OSF 5.1 @command{sh}
 sometimes enters the trap handler with the exit status of the command


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.