From MAILER-DAEMON Thu Aug 04 09:15:59 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QoxmJ-0000lI-0S
	for mharc-autoconf-commit@gnu.org; Thu, 04 Aug 2011 09:15:59 -0400
Received: from eggs.gnu.org ([140.186.70.92]:58569)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QoxmG-0000kp-0m
	for autoconf-commit@gnu.org; Thu, 04 Aug 2011 09:15:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QoxmA-0000ft-My
	for autoconf-commit@gnu.org; Thu, 04 Aug 2011 09:15:55 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:48981)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QoxmA-0000fn-K3
	for autoconf-commit@gnu.org; Thu, 04 Aug 2011 09:15:50 -0400
Received: from slattarini by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QoxmA-0002zr-2m
	for autoconf-commit@gnu.org; Thu, 04 Aug 2011 13:15:50 +0000
Date: Thu, 04 Aug 2011 13:15:50 +0000
Message-Id: <E1QoxmA-0002zr-2m@vcs.savannah.gnu.org>
From: "Stefano Lattarini" <stefano.lattarini@gmail.com>
To: autoconf-commit@gnu.org
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-82-g4b75742
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 0ff6eaebd9de8bc4671f7eb473d84b15bf0d9593
X-Git-Newrev: 4b75742acc01e40405b475f32c5db61ca35a9ff7
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Aug 2011 13:15:57 -0000

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=4b75742acc01e40405b475f32c5db61ca35a9ff7

The branch, master has been updated
       via  4b75742acc01e40405b475f32c5db61ca35a9ff7 (commit)
      from  0ff6eaebd9de8bc4671f7eb473d84b15bf0d9593 (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 4b75742acc01e40405b475f32c5db61ca35a9ff7
Author: Stefano Lattarini <stefano.lattarini@gmail.com>
Date:   Thu Aug 4 10:24:36 2011 +0200

    docs: another Solaris sh bug with redirected `:'
    
    * doc/autoconf.texi (File Descriptors): Solaris 10 /bin/sh
    "optimizes" away redirected `:' commands in a shell function
    after the first call.

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

Summary of changes:
 ChangeLog         |    7 +++++++
 doc/autoconf.texi |    8 ++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 34c5469..4d850bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-08-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+	docs: another Solaris sh bug with redirected `:'
+	* doc/autoconf.texi (File Descriptors): Solaris 10 /bin/sh
+	"optimizes" away redirected `:' commands in a shell function
+	after the first call.
+
 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
 
 	docs: modernize treatment of ns-resolution timestamps
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index b75b408..c6837eb 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -15428,12 +15428,16 @@ In each case the expected result is of course @file{fullness} containing
 probably not of practical concern to modern platforms.
 
 Solaris 10 @command{sh} will try to optimize away a @command{:} command
-in a loop after the first iteration, even if it is redirected:
+(even if it is redirected) in a loop after the first iteration, or in a
+shell function after the first call:
 
 @example
 $ @kbd{for i in 1 2 3 ; do : >x$i; done}
-$ @kbd{ls}
+$ @kbd{ls x*}
 x1
+$ @kbd{f () @{ : >$1; @}; f y1; f y2; f y3;}
+$ @kbd{ls y*}
+y1
 @end example
 
 @noindent


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Mon Aug 08 17:33:58 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QqXSQ-000846-RL
	for mharc-autoconf-commit@gnu.org; Mon, 08 Aug 2011 17:33:58 -0400
Received: from eggs.gnu.org ([140.186.70.92]:48746)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QqXSO-0007zW-BY
	for autoconf-commit@gnu.org; Mon, 08 Aug 2011 17:33:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QqXSN-00031p-0T
	for autoconf-commit@gnu.org; Mon, 08 Aug 2011 17:33:56 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:57701)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QqXSM-00031l-VD
	for autoconf-commit@gnu.org; Mon, 08 Aug 2011 17:33:54 -0400
Received: from slattarini by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QqXSM-0007xC-2Z
	for autoconf-commit@gnu.org; Mon, 08 Aug 2011 21:33:54 +0000
Date: Mon, 08 Aug 2011 21:33:54 +0000
Message-Id: <E1QqXSM-0007xC-2Z@vcs.savannah.gnu.org>
From: "Stefano Lattarini" <stefano.lattarini@gmail.com>
To: autoconf-commit@gnu.org
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-83-gf36755e
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 4b75742acc01e40405b475f32c5db61ca35a9ff7
X-Git-Newrev: f36755ebbb1c05530b880c97f228a9c97709d1aa
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Aug 2011 21:33:57 -0000

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=f36755ebbb1c05530b880c97f228a9c97709d1aa

The branch, master has been updated
       via  f36755ebbb1c05530b880c97f228a9c97709d1aa (commit)
      from  4b75742acc01e40405b475f32c5db61ca35a9ff7 (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 f36755ebbb1c05530b880c97f228a9c97709d1aa
Author: Stefano Lattarini <stefano.lattarini@gmail.com>
Date:   Mon Aug 8 19:20:44 2011 +0200

    docs: fix minor typos
    
    * doc/autoconf.texi (Shell Functions): Fix a couple of minor typos.

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

Summary of changes:
 ChangeLog         |    5 +++++
 doc/autoconf.texi |    6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4d850bd..6ca51fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+	docs: fix minor typos
+	* doc/autoconf.texi (Shell Functions): Fix a couple of minor typos.
+
 2011-08-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
 	docs: another Solaris sh bug with redirected `:'
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index c6837eb..7c1818d 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -16929,11 +16929,11 @@ segmentation fault.  To work around the issue, you can use
 in the execution flow of the function (@pxref{Common Shell Constructs}).
 
 Not all shells treat shell functions as simple commands impacted by
-@samp{set -e}, for example with Solaris 10 @command{bin/sh}:
+@samp{set -e}, for example with Solaris 10 @command{/bin/sh}:
 
 @example
-$ @kbd{bash -c 'f() @{ return 1; @}; set -e; f; echo oops}
-$ @kbd{/bin/sh -c 'f() @{ return 1; @}; set -e; f; echo oops}
+$ @kbd{bash -c 'f() @{ return 1; @}; set -e; f; echo oops'}
+$ @kbd{/bin/sh -c 'f() @{ return 1; @}; set -e; f; echo oops'}
 oops
 @end example
 


hooks/post-receive
-- 
GNU Autoconf source repository


From MAILER-DAEMON Thu Aug 18 15:10:50 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Qu7zN-00017w-VI
	for mharc-autoconf-commit@gnu.org; Thu, 18 Aug 2011 15:10:49 -0400
Received: from eggs.gnu.org ([140.186.70.92]:37877)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Qu7zK-00016U-SY
	for autoconf-commit@gnu.org; Thu, 18 Aug 2011 15:10:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Qu7zI-0001qP-Nd
	for autoconf-commit@gnu.org; Thu, 18 Aug 2011 15:10:46 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:57178)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Qu7zI-0001q8-LK
	for autoconf-commit@gnu.org; Thu, 18 Aug 2011 15:10:44 -0400
Received: from slattarini by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Qu7zF-0000LC-Hh
	for autoconf-commit@gnu.org; Thu, 18 Aug 2011 19:10:43 +0000
Date: Thu, 18 Aug 2011 19:10:42 +0000
Message-Id: <E1Qu7zF-0000LC-Hh@vcs.savannah.gnu.org>
From: "Stefano Lattarini" <stefano.lattarini@gmail.com>
To: autoconf-commit@gnu.org
Subject: [SCM] GNU Autoconf source repository branch, master,
	updated. v2.68-84-g96cdf32
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: f36755ebbb1c05530b880c97f228a9c97709d1aa
X-Git-Newrev: 96cdf32954a64884ef28da1e384de5dae49d94e0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: autoconf-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: autoconf-patches@gnu.org
List-Id: Commits to the Autoconf git repository <autoconf-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf-commit>
List-Post: <mailto:autoconf-commit@gnu.org>
List-Help: <mailto:autoconf-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf-commit>,
	<mailto:autoconf-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Aug 2011 19:10:48 -0000

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=96cdf32954a64884ef28da1e384de5dae49d94e0

The branch, master has been updated
       via  96cdf32954a64884ef28da1e384de5dae49d94e0 (commit)
      from  f36755ebbb1c05530b880c97f228a9c97709d1aa (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 96cdf32954a64884ef28da1e384de5dae49d94e0
Author: Stefano Lattarini <stefano.lattarini@gmail.com>
Date:   Tue Aug 16 18:31:42 2011 +0200

    docs: other issues with parallel BSD make
    
    Motivated by automake bug#9245:
     <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9245>
    and FreeBSD PR bin/159730:
     <http://www.freebsd.org/cgi/query-pr.cgi?pr=159730>
    
    * doc/autoconf.texi (Parallel Make): Document other BSD make
    incompatibilities.  Reorganize the existing related documentation
    accordingly.

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

Summary of changes:
 ChangeLog         |   11 ++++
 doc/autoconf.texi |  142 ++++++++++++++++++++++++++++++++++++-----------------
 2 files changed, 107 insertions(+), 46 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6ca51fd..6e36455 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2011-08-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+	docs: other issues with parallel BSD make
+	Motivated by automake bug#9245:
+	 <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9245>
+	and FreeBSD PR bin/159730:
+	 <http://www.freebsd.org/cgi/query-pr.cgi?pr=159730>
+	* doc/autoconf.texi (Parallel Make): Document other BSD make
+	incompatibilities.  Reorganize the existing related documentation
+	accordingly.
+
 2011-08-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
 	docs: fix minor typos
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 7c1818d..3377afe 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -19826,45 +19826,10 @@ sh
 Support for parallel execution in @command{make} implementation varies.
 Generally, using GNU make is your best bet.
 
-Some make implementations (among them, FreeBSD @command{make}, NetBSD
-@command{make}, and Solaris @command{dmake}), when invoked with a
-@option{-j@var{N}} option, connect the standard output and standard
-error of all their child processes to pipes or temporary regular
-files.  This can lead to subtly different semantics in the behaviour
-of the spawned processes.  For example, even if the @command{make}
-standard output is connected to a tty, the recipe command will not be:
-
-@example
-$ @kbd{cat Makefile}
-all:
-        @@test -t 1 && echo "Is a tty" || echo "Is not a tty"
-$ @kbd{make -j 2} # FreeBSD make
-Is not a tty
-$ @kbd{make -j 2} # NetBSD make
---- all ---
-Is not a tty
-$ @kbd{dmake -j 2} # Solaris dmake
-@var{hostname} --> 1 job
-@var{hostname} --> Job output
-Is not a tty
-@end example
-
-@noindent
-On the other hand:
-
-@example
-$ @kbd{make -j 2} # GNU make, Heirloom make
-Is a tty
-@end example
-
-Furthermore, parallel runs of those @command{make} implementations will
-route standard error from commands that they spawn into their own
-standard output, and may remove leading whitespace from output lines.
-
 When NetBSD or FreeBSD @command{make} are run in parallel mode, they will
 reuse the same shell for multiple commands within one recipe.  This can
-have unexpected consequences. For example, change of directories or
-variables persist between commands:
+have various unexpected consequences.  For example, changes of directories
+or variables persist between recipes, so that:
 
 @example
 all:
@@ -19873,10 +19838,10 @@ all:
 @end example
 
 @noindent
-may output the following with @code{make -j1}:
+may output the following with @code{make -j1}, at least on NetBSD up to
+5.1 and FreeBSD up to 8.2:
 
 @example
---- all ---
 /
 value
 32235
@@ -19885,6 +19850,7 @@ value
 32235
 @end example
 
+@noindent
 while without @option{-j1}, or with @option{-B}, the output looks less
 surprising:
 
@@ -19897,19 +19863,103 @@ value
 32239
 @end example
 
-Another consequence of this is that, if one command in a recipe uses
-@code{exit 0} to indicate a successful exit, the shell will be gone
-and the remaining commands of this recipe will not be executed.
+@noindent
+Another consequence is that, if one command in a recipe uses @code{exit 0}
+to indicate a successful exit, the shell will be gone and the remaining
+commands of this recipe will not be executed.
+
+The BSD @command{make} implementations, when run in parallel mode,
+will also pass the @command{Makefile} recipes to the shell through
+its standard input, thus making it unusable from the recipes:
+
+@example
+$ @kbd{cat Makefile}
+read:
+        @@read line; echo LINE: $$line
+@c $$ @c restore font-lock
+$ @kbd{echo foo | make read}
+LINE: foo
+$ @kbd{echo foo | make -j1 read} # NetBSD 5.1 and FreeBSD 8.2
+LINE:
+@end example
+
+@noindent
+Moreover, when FreeBSD @command{make} (up at least to 8.2) is run in
+parallel mode, it implements the @code{@@} and @code{-} ``recipe
+modifiers'' by dynamically modifying the active shell flags.  This
+behaviour has the effects of potentially clobbering the exit status
+of recipes silenced with the @code{@@} modifier if they also unset
+the @option{errexit} shell flag, and of mangling the output in
+unexpected ways:
 
-The above example also shows additional status output produced by NetBSD
-@command{make} (but @emph{not} by FreeBSD @command{make}) in parallel
-mode for targets being updated.
+@example
+$ @kbd{cat Makefile}
+a:
+        @@echo $$-; set +e; false
+b:
+        -echo $$-; false; echo set -
+$ @kbd{make a; echo status: $?}
+ehBc
+*** Error code 1
+status: 1
+$ @kbd{make -j1 a; echo status: $?}
+ehB
+status: 0
+$ @kbd{make b}
+echo $-; echo set -
+hBc
+set -
+$ @kbd{make -j1 b}
+echo $-; echo hvB
+@end example
 
-You can avoid these issues by using the @option{-B} option to enable
+@noindent
+You can avoid all these issues by using the @option{-B} option to enable
 compatibility semantics.  However, that will effectively also disable
 all parallelism as that will cause prerequisites to be updated in the
 order they are listed in a rule.
 
+Some make implementations (among them, FreeBSD @command{make}, NetBSD
+@command{make}, and Solaris @command{dmake}), when invoked with a
+@option{-j@var{N}} option, connect the standard output and standard
+error of all their child processes to pipes or temporary regular
+files.  This can lead to subtly different semantics in the behaviour
+of the spawned processes.  For example, even if the @command{make}
+standard output is connected to a tty, the recipe command will not be:
+
+@example
+$ @kbd{cat Makefile}
+all:
+        @@test -t 1 && echo "Is a tty" || echo "Is not a tty"
+$ @kbd{make -j 2} # FreeBSD 8.2 make
+Is not a tty
+$ @kbd{make -j 2} # NetBSD 5.1 make
+--- all ---
+Is not a tty
+$ @kbd{dmake -j 2} # Solaris 10 dmake
+@var{hostname} --> 1 job
+@var{hostname} --> Job output
+Is not a tty
+@end example
+
+@noindent
+On the other hand:
+
+@example
+$ @kbd{make -j 2} # GNU make, Heirloom make
+Is a tty
+@end example
+
+@noindent
+The above examples also show additional status output produced in parallel
+mode for targets being updated by Solaris @command{dmake} and NetBSD
+@command{make} (but @emph{not} by FreeBSD @command{make}).
+
+Furthermore, parallel runs of those @command{make} implementations will
+route standard error from commands that they spawn into their own
+standard output, and may remove leading whitespace from output lines.
+
+
 @node Comments in Make Rules
 @section Comments in Make Rules
 @cindex Comments in @file{Makefile} rules


hooks/post-receive
-- 
GNU Autoconf source repository


