home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC-Online 1996 May
/
PCOnline_05_1996.bin
/
linux
/
source
/
ap
/
zsh
/
zsh-2.4
/
zsh-2
/
zsh-2.4.306
/
help
/
for
< prev
next >
Wrap
Text File
|
1993-10-09
|
1KB
|
31 lines
for name [ in word ... ]
do list
done Expand the list of words, and set the param-
eter name to each of them in turn, executing
list each time. If the in word is omitted,
use the positional parameters instead of the
words.
for name [ in word ... ] ; sublist
This is a shorthand for for. Though it may
cause confusion, it is included for conve-
nience; its use in scripts is discouraged,
unless sublist is a command of the form {
list }.
foreach name ( word ... )
list
end Another form of for.
for name in word ...
{
list
} Another form of for.
for name ( word ... ) {
list
} Another form of for.
for name ( word ... ) sublist
Another form of for.