[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: host_os has a space in it
From: |
Ralf Wildenhues |
Subject: |
Re: host_os has a space in it |
Date: |
Wed, 3 May 2006 09:52:32 +0200 |
User-agent: |
Mutt/1.5.11 |
* 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 address@hidden
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 @address@hidden@address@hidden 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