home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / zsh / Source / help / select < prev    next >
Encoding:
Text File  |  1993-10-08  |  1.1 KB  |  20 lines

  1.               select name [ in word ... ]
  2.               do list
  3.               done   Print the set of words, each preceded  by  a
  4.                      number.   If the in word is omitted, use the
  5.                      positional parameters.  The  PROMPT3  prompt
  6.                      is  printed and a line is read from standard
  7.                      input.  If this line consists of the  number
  8.                      of one of the listed words, then the parame-
  9.                      ter name is set to the word corresponding to
  10.                      this  number.   If  this  line is empty, the
  11.                      selection list is printed again.  Otherwise,
  12.                      the  value  of  the parameter name is set to
  13.                      null.  The contents of the  line  read  from
  14.                      standard  input  is  saved  in the parameter
  15.                      REPLY.  list is executed for each  selection
  16.                      until a break or end-of-file is encountered.
  17.  
  18.               select name [ in word ] ; sublist
  19.                      A short form of select.
  20.