* Seanster wrote on Tue, May 02, 2006 at 11:45:47AM CEST: > On Tue, 2 May 2006 09:56:24 +0200, you wrote: > > >Which shell are you using? Are you using libltdl? > > GNU bash, version 2.04.21(1)-release (i386-redhat-linux-gnu)
Confirmed. The bug is with this bash release. I downloaded and compiled ftp://ftp.gnu.org/pub/gnu/bash/bash-2.04.tar.gz (presumably close enough to the RedHat-modified version you used), it has the bug that ./bash -c 'set a b; sIFS=$IFS; IFS=-; h=$*; IFS=$sIFS; echo "$h"' outputs 'a b' rather than 'a-b'. This bug has been fixed in ftp://ftp.gnu.org/pub/gnu/bash/bash-2.05.tar.gz OK to apply this documentation update? Cheers, Ralf * doc/autoconf.texi (Special Shell Variables) <IFS>: Document `$*' and IFS concatenation issue with traditional shells and bash-2.04. Report by [EMAIL PROTECTED] Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.1012 diff -u -r1.1012 autoconf.texi --- doc/autoconf.texi 3 May 2006 01:08:27 -0000 1.1012 +++ doc/autoconf.texi 3 May 2006 06:10:02 -0000 @@ -11546,7 +11696,9 @@ The proper value for @code{IFS} (in regular code, not when performing splits) is @[EMAIL PROTECTED]@[EMAIL PROTECTED] The first character is -especially important, as it is used to join the arguments in @samp{@@*}. +especially important, as it is used to join the arguments in @samp{$*}; +however, note that traditional shells, but also bash-2.04, fail to adhere +to this and join with a space anyway. @item LANG @itemx LC_ALL