* Eric Blake wrote on Tue, Aug 03, 2010 at 10:55:36PM CEST: > On 08/03/2010 02:32 PM, Ralf Wildenhues wrote: > > Interesting shell unportability: > > > > $ bash -c 'f=" val" e=; echo "$e"$f' > > val > > $ ksh -c 'f=" val" e=; echo "$e"$f' > > val > > > > ksh93, dash, zsh all do it like ksh. Is that a bug in bash? > > Yes; [...]
thanks for the investigation. I'm pushing the patch with modified log entry. Cheers, Ralf Fix testsuite errors due to shell quoted parameter expansion issue. * tests/getopt-m4sh.at (_LT_AT_GETOPT_M4SH_SETUP): Insert space between double-quoted and unquoted shell parameter, as bash 4.0.28 doesn't add one in its output if the expansion of the second one starts with a space. (short option splitting, enhanced shell short option splitting) (long option splitting, XSI long option splitting): Add space in expected output. Fixes testsuite failures on AIX, FreeBSD, etc. Report by Rainer Tammer.