home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / read-shift / How To (shift) < prev    next >
Encoding:
Text File  |  1994-09-16  |  629 b   |  26 lines  |  [TEXT/ttxt]

  1. How To
  2. =======
  3.  
  4. To use this command, drop the "shift" file into your nShell "bin" directory.
  5.  
  6. Description
  7. ==========
  8.  
  9. NAME
  10.  
  11. shift - Shift numeric variables
  12.  
  13. SYNOPSIS
  14.  
  15. shift [n]
  16.  
  17. DESCRIPTION
  18.  
  19. The numeric variables shall be shifted.  Numeric variable $0 shall be assigned the value of variable $(0+n), variable $1 shall be assigned the value of variable $(1+n), and so forth.  The variables represented by the numbers $# down to $#-n+1 shall be unset, and the variable $# shall be updated to reflect the new number of variable variables.
  20.  
  21. RETURN CODES
  22.  
  23. <0    Error
  24. 0    Success, $0 is valid.
  25. 1    No numeric variables found, $0 is cleared.
  26.