[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IFS clobbering

From: Eric Blake
Subject: Re: IFS clobbering
Date: Mon, 21 Nov 2011 06:27:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1

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.  Configure scripts already sanitize IFS up front to
space-tab-newline; and it is expected that any configure.ac that changes
IFS will reset it before expanding any further macros.

There's no way that autoconf can protect itself against buggy
configure.ac that fail to follow the rule about sane use of IFS, other
than to document "don't do that".

Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]