Subject: [bug] shwordsplit not working on $@ when $# > 1
From: Stephane Chazelas <[email-masked]>
To: [email-masked]
Date: Mon, 8 Aug 2016 12:16:26 +0100
List-Id: Zsh Workers List <zsh-workers.zsh.org>

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