Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[bug] shwordsplit not working on $@ when $# > 1



Bug found by BinaryZebra (https://unix.stackexchange.com/questions/301277/zsh-fail-to-keep-unquoted-and-equal)


It looks like the elements of $@ only undergo splitting when $#
is 1:

~$ zsh -o shwordsplit -c 'IFS=:; echo $@' zsh a:b
a b
~$ zsh -o shwordsplit -c 'IFS=:; echo $@' zsh a:b c
a:b c

Also reproduced with current git head.

(note that it affects shwordsplit, but not globsubst)

-- 
Stephane



Messages sorted by: Reverse Date, Date, Thread, Author