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

$* assignment regression in shwordsplit



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