From: Stefano Lattarini Date: Thu, 4 Aug 2011 08:24:36 +0000 (+0200) Subject: docs: another Solaris sh bug with redirected `:' X-Git-Tag: v2.68b~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b75742acc01e40405b475f32c5db61ca35a9ff7;p=thirdparty%2Fautoconf.git 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. --- diff --git a/ChangeLog b/ChangeLog index 34c54690..4d850bd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-08-04 Stefano Lattarini + + 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 docs: modernize treatment of ns-resolution timestamps diff --git a/doc/autoconf.texi b/doc/autoconf.texi index b75b408b..c6837ebd 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