[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IFS clobbering
From: |
Andreas Schwab |
Subject: |
Re: IFS clobbering |
Date: |
Mon, 21 Nov 2011 14:53:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Eric Blake <address@hidden> writes:
> On 11/20/2011 08:29 AM, Andreas Schwab wrote:
>> Should autoconf be more robust against IFS clobbering?
>>
>> $ printf '%s\n' AC_INIT "IFS=' '" AC_OUTPUT > configure.ac
>> $ autoconf
>> $ ./configure
>> ./configure: line 1669: BASHOPTS: command not found
>> [...]
>
> No. That's a bug in configure.ac for changing IFS in a non-portable
> manner.
What about this:
$ printf "%s\n" AC_INIT 'x=$IFS; IFS=" "; sleep 5; IFS=$x' AC_OUTPUT >
configure.ac
$ autoconf
$ ./configure
configure: creating ./config.status
$ timeout -s 2 3 ./configure
./configure: line 14: BASHOPTS: command not found
[...]
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."