Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
$* assignment regression in shwordsplit
- X-seq: zsh-workers 40925
- From: Martijn Dekker <martijn@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: $* assignment regression in shwordsplit
- Date: Sun, 2 Apr 2017 19:45:14 +0200
- 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
In the current zsh development version[*], there is a regression with
assigning "$*" to a variable in shwordsplit mode when IFS is either
unset or empty. The "$*" is only expanded the first time it occurs.
$ Src/zsh -f -c 'set -- one two; unset IFS; var=$*/$*; echo $var $*/$*;
setopt shwordsplit; var=$*/$*; echo "$var" "$*/$*"'
one two/one two one two/one two
one two/$* one two/one two
$ Src/zsh -f -c 'set -- one two; IFS=; var=$*/$*; echo $var $*/$*;
setopt shwordsplit; var=$*/$*; echo "$var" "$*/$*"'
onetwo/onetwo onetwo/onetwo
onetwo/$* onetwo/onetwo
Thanks,
- M.
[*] as of commit eaeebeb8bb80cd7e2f5c703c7da31f44a1ab3182
Messages sorted by:
Reverse Date,
Date,
Thread,
Author