Angus Leeming wrote: > From the mailer. Attached is the test code I've used. 'conftest.sh' > invokes a dummy 'configure' that just prints out the args: > > $ sh conftest.sh > ./configure --with-frontend='xforms qt gtk' > arg is "--with-frontend='xforms" > arg is "qt" > arg is "gtk'"
I get the same results on SuSE 9.0 (bash 2.05b.0(1)-release) and Debian 3.0 (bash 2.05a.0(1)-release). Seems that this is either correct behaviour or a bug in several versions of bash. > $ cat configure > #! /bin/sh > > for arg in $@ This needs to be: for arg in "@" as I learned recently from André. Otherwise it would print the same wrong result even if the input was correct. Georg