Re: wrong filename returned by for in

2009-05-12 Thread Andreas Schwab
Miche writes: > Repeat-By: > touch file\ \ with\ more\ than\ one\ spaces\ \ \ in\ sequence > ls -1 file* > for a in file* ; do echo $a ; done Insufficient quoting. The expansion of $a undergoes word splitting, you have to quote it to suppress that. for a in file* ; do

wrong filename returned by for in

2009-05-12 Thread Miche
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash