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 >
Text File  |  1993-10-09  |  1KB  |  31 lines

  1.               for name [ in word ... ]
  2.               do list
  3.               done   Expand the list of words, and set the param-
  4.                      eter name to each of them in turn, executing
  5.                      list each time.  If the in word is  omitted,
  6.                      use the positional parameters instead of the
  7.                      words.
  8.  
  9.               for name [ in word ... ] ; sublist
  10.                      This is a shorthand for for.  Though it  may
  11.                      cause  confusion,  it is included for conve-
  12.                      nience; its use in scripts  is  discouraged,
  13.                      unless  sublist  is  a command of the form {
  14.                      list }.
  15.  
  16.               foreach name ( word ... )
  17.               list
  18.               end    Another form of for.
  19.  
  20.               for name in word ...
  21.               {
  22.               list
  23.               }      Another form of for.
  24.  
  25.               for name ( word ... ) {
  26.               list
  27.               }      Another form of for.
  28.  
  29.               for name ( word ... ) sublist
  30.                      Another form of for.
  31.