autoconf-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Autoconf source repository branch, master, updated. v2.62-24-g


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.62-24-gf15bc5b
Date: Tue, 27 May 2008 17:12:34 +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=f15bc5b04c7acc65f321ed3875e741000d0ce409

The branch, master has been updated
       via  f15bc5b04c7acc65f321ed3875e741000d0ce409 (commit)
      from  95dfc197494a66dc9a88577d18f1633afc7cff2d (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 f15bc5b04c7acc65f321ed3875e741000d0ce409
Author: Eric Blake <address@hidden>
Date:   Tue May 27 11:07:01 2008 -0600

    Document Solaris /bin/sh redirection pitfall.
    
    * doc/autoconf.texi (File Descriptors): Mention redirection bug.
    
    Signed-off-by: Eric Blake <address@hidden>

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

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

diff --git a/ChangeLog b/ChangeLog
index 15adde0..5d2c610 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-27  Eric Blake  <address@hidden>
+
+       Document Solaris /bin/sh redirection pitfall.
+       * doc/autoconf.texi (File Descriptors): Mention redirection bug.
+
 2008-05-14  Eric Blake  <address@hidden>
 
        Improve documentation of ! issues.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index ee1ede5..cef2d3b 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -12698,6 +12698,19 @@ $
 Within the process which runs the @samp{descrips} script, file
 descriptor 5 is closed.
 
+Don't rely on redirection to a closed file descriptor to cause an
+error.  With Solaris @command{/bin/sh}, when the redirection fails, the
+output goes to the original file descriptor.
+
address@hidden
+$ @kbd{bash -c 'echo hi >&3' 3>&-; echo $?}
+bash: 3: Bad file descriptor
+1
+$ @kbd{/bin/sh -c 'echo hi >&3' 3>&-; echo $?}
+hi
+0
address@hidden example
+
 @acronym{DOS} variants cannot rename or remove open files, such as in
 @samp{mv foo bar >foo} or @samp{rm foo >foo}, even though this is
 perfectly portable among Posix hosts.


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

[Prev in Thread] Current Thread [Next in Thread]