autoconf-patches
[Top][All Lists]
Advanced

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

[PATCH] docs: another Solaris sh bug with redirected `:'


From: Stefano Lattarini
Subject: [PATCH] docs: another Solaris sh bug with redirected `:'
Date: Thu, 4 Aug 2011 10:25:14 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

* doc/autoconf.texi (File Descriptors): Solaris 10 /bin/sh
"optimizes" away redirected `:' commands in a shell function
after the first call.
---
 ChangeLog         |    7 +++++++
 doc/autoconf.texi |    6 +++++-
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 88cb50c..2543745 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-08-04  Stefano Lattarini  <address@hidden>
+
+       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-12  Benoit Sigoure  <address@hidden>  (tiny change)
 
        docs: fix typo in AC_PATH_PROG
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 7c40ca3..2655902 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}
 x1
+$ @kbd{f () @{ : >$1; @}; f y1; f y2; f y3;}
+$ @kbd{ls}
+y1
 @end example
 
 @noindent
-- 
1.7.2.3




reply via email to

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