* 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 <stefano.lattar...@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-12 Benoit Sigoure <tsuna...@gmail.com> (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