Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to add string to end of each array element without loops
- X-seq: zsh-users 15896
- From: nix@xxxxxxxxxxxxxxxx
- To: zsh-users@xxxxxxx
- Subject: How to add string to end of each array element without loops
- Date: Fri, 25 Mar 2011 23:32:11 +0200
- Importance: Normal
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author