[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
config.log claims invocation is FLAGS=foo bar when really FLAGS='foo bar
From: |
Kevin Brubeck Unhammer |
Subject: |
config.log claims invocation is FLAGS=foo bar when really FLAGS='foo bar' |
Date: |
Fri, 04 Nov 2016 11:51:59 +0100 |
Tested with GNU Autoconf 2.69.
To reproduce, open any autoconf-using project and run:
$ ./configure FLAGS='foo bar' >/dev/null && grep -m1 /configure config.log
$ ./configure FLAGS=foo bar
Expected output:
$ ./configure "FLAGS='foo bar'"
I know the shell interprets the quotes etc., but it's possible to work
around that; e.g.
C=''
for i in "$@"; do
i=$(echo "$i" | sed 's/\\/\\\\/g; s/\"/\\\"/g')
C="$C \"$i\""
done
echo "$C"
(based on bash version at http://stackoverflow.com/a/8723305/69663 )
--
Kevin Brubeck Unhammer
GPG: 50D487960B863F054B6A12F9742606DE766AC60C
signature.asc
Description: PGP signature
- config.log claims invocation is FLAGS=foo bar when really FLAGS='foo bar',
Kevin Brubeck Unhammer <=