$ list="a b c" $ for i in $list; do echo $i; done a b c $ rpm -q zsh zsh-4.3.10-alt6 $ ls -l ~/.zshrc -rw-r--r-- 1 mike mike 0 Aug 28 15:49 /home/mike/.zshrc Reproducible on x86_64 and i586 builds, just in case. And works as expected in bash: [mike@pad ~]$ list="a b c" [mike@pad ~]$ for i in $list; do echo $i; done a b c
Are you suggesting to turn SH_WORD_SPLIT on by default? It's already turned on in sh emulation mode, and zsh isn't sh. Use ${=list} intead.
(boom!) Indeed: http://zsh.sourceforge.net/FAQ/zshfaq03.html http://www.zsh.org/mla/users/1997/msg00033.html