]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
docs: another Solaris sh bug with redirected `:'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 4 Aug 2011 08:24:36 +0000 (10:24 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 4 Aug 2011 13:13:26 +0000 (15:13 +0200)
* doc/autoconf.texi (File Descriptors): Solaris 10 /bin/sh
"optimizes" away redirected `:' commands in a shell function
after the first call.

ChangeLog
doc/autoconf.texi

index 34c546905924b7b7948925a9175ca53283a65009..4d850bd884b1a9f6c93e88e1acf721da81382678 100644 (file)
--- 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
index b75b408b7e540ff3b87b7c863dc3e43402b53d4f..c6837ebd4080ff82e4f56c46459883a3110957c3 100644 (file)
@@ -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