Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[bug] shwordsplit not working on $@ when $# > 1
- X-seq: zsh-workers 39003
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [bug] shwordsplit not working on $@ when $# > 1
- Date: Mon, 8 Aug 2016 12:16:26 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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