zsh-workers
 help / color / mirror / code / Atom feed
* $* assignment regression in shwordsplit
@ 2017-04-02 17:45 Martijn Dekker
  2017-04-02 17:49 ` Martijn Dekker
  2017-04-02 17:58 ` Daniel Shahaf
  0 siblings, 2 replies; 4+ messages in thread
From: Martijn Dekker @ 2017-04-02 17:45 UTC (permalink / raw)
  To: Zsh hackers list

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


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

end of thread, other threads:[~2017-04-02 20:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-02 17:45 $* assignment regression in shwordsplit Martijn Dekker
2017-04-02 17:49 ` Martijn Dekker
2017-04-02 17:58 ` Daniel Shahaf
2017-04-02 20:15   ` 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).