zsh-workers
 help / color / mirror / code / Atom feed
* Array expansion interacts with brace expansion in the wrong order
@ 2017-07-13 22:45 Anders Kaseorg
  2017-07-13 23:48 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Anders Kaseorg @ 2017-07-13 22:45 UTC (permalink / raw)
  To: zsh-workers

Given a=(1 2 3), I would expect {$^a,4,5,6} to expand to 1 2 3 4 5 6, but 
it doesn’t.  Instead the 4 5 6 is duplicated for every element of $^a:

% echo $ZSH_PATCHLEVEL
zsh-5.3.1-240-ga3b3f0057
% echo {{1,2,3},4,5,6}
1 2 3 4 5 6
% a=(1 2 3)
% echo {$^a,4,5,6}
1 4 5 6 2 4 5 6 3 4 5 6

Anders


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

end of thread, other threads:[~2017-07-15 17:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-13 22:45 Array expansion interacts with brace expansion in the wrong order Anders Kaseorg
2017-07-13 23:48 ` Bart Schaefer
2017-07-14  1:42   ` Anders Kaseorg
2017-07-14  8:48     ` Peter Stephenson
2017-07-14  9:45       ` Peter Stephenson
2017-07-15 17:19         ` Peter Stephenson

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).