zsh-workers
 help / color / mirror / code / Atom feed
* [bug] shwordsplit not working on $@ when $# > 1
@ 2016-08-08 11:16 Stephane Chazelas
  2016-08-08 17:28 ` Bart Schaefer
  2016-08-08 18:27 ` Peter Stephenson
  0 siblings, 2 replies; 12+ messages in thread
From: Stephane Chazelas @ 2016-08-08 11:16 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-08-12  7:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-08 11:16 [bug] shwordsplit not working on $@ when $# > 1 Stephane Chazelas
2016-08-08 17:28 ` Bart Schaefer
2016-08-08 18:02   ` Jérémie Roquet
2016-08-08 18:27 ` Peter Stephenson
2016-08-09  1:21   ` Bart Schaefer
2016-08-09  8:40     ` Peter Stephenson
2016-08-10 17:28       ` Bart Schaefer
2016-08-11 10:05         ` Peter Stephenson
2016-08-11 17:28           ` Bart Schaefer
2016-08-12  7:50             ` Bart Schaefer
2016-08-10 12:56     ` Peter Stephenson
2016-08-11  0:39       ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).