zsh-users
 help / color / mirror / code / Atom feed
* How to add string to end of each array element without loops
@ 2011-03-25 21:32 nix
  2011-03-25 21:45 ` Mikael Magnusson
  2011-03-25 22:03 ` Bart Schaefer
  0 siblings, 2 replies; 9+ messages in thread
From: nix @ 2011-03-25 21:32 UTC (permalink / raw)
  To: zsh-users

a=(1 2 3)
a=(foo$^a[@])

print -l "${(@n)a}"

foo1
foo2
foo3

I would like to get the following output instead:

1foo
2foo
3foo


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

end of thread, other threads:[~2011-03-26 14:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-25 21:32 How to add string to end of each array element without loops nix
2011-03-25 21:45 ` Mikael Magnusson
2011-03-25 21:47   ` nix
2011-03-25 22:03 ` Bart Schaefer
2011-03-26  1:37   ` nix
2011-03-26  2:10     ` Bart Schaefer
2011-03-26  2:39       ` nix
2011-03-26  7:14         ` Bart Schaefer
2011-03-26 14:04           ` nix

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