I recently switched from bash to zsh and not sure how to achieve this:
bash:
$ list='aaa
> bbb
> ccc
> ddd'
$ for i in $list; do echo $i-xxx; done
aaa-xxx
bbb-xxx
ccc-xxx
ddd-xxx
in zsh I get:
% list='aaa
quote> bbb
quote> ccc
quote> ddd'
% for i in $list; do echo $i-xxx; done
aaa
bbb
ccc
ddd-xxx
how to force zsh to do this in the same way as bash?