zsh-users
 help / color / mirror / code / Atom feed
* array as loopvariable - howto
@ 2003-05-08  9:58 jarausch
  2003-05-08 10:24 ` Borzenkov Andrey
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: jarausch @ 2003-05-08  9:58 UTC (permalink / raw)
  To: zsh-users

Hi

I would like to write a loop over a list of arrays,

e.g. I would like to iterate over pairs of (username,UID)

A naiv try like

for User in (User1,100) (User2,120); do  echo "$U[1] has UID $U[2]";
done

failed.
Is this possible in ZSH?

Many thanks for a hint,

Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany


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

end of thread, other threads:[~2003-05-11 18:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08  9:58 array as loopvariable - howto jarausch
2003-05-08 10:24 ` Borzenkov Andrey
2003-05-08 10:33 ` Peter Stephenson
2003-05-08 10:50   ` Peter Stephenson
2003-05-08 12:14   ` Upcoming (Was: array as loopvariable - howto) Geoff Wing
2003-05-11 18:15 ` array as loopvariable - howto 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).