Bug 23979 - broken parameter expansion?
Summary: broken parameter expansion?
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: zsh (show other bugs)
Version: unstable
Hardware: all Linux
: P3 major
Assignee: Fr. Br. George
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-28 16:55 MSD by Michael Shigorin
Modified: 2012-01-21 11:56 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Shigorin 2010-08-28 16:55:07 MSD
$ 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
Comment 1 Fr. Br. George 2012-01-20 16:54:03 MSK
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.