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

  1.        pushd [ arg ]
  2.        pushd old new
  3.        pushd +-n
  4.               Change the current directory, and push the old cur-
  5.               rent directory onto the directory  stack.   In  the
  6.               first  form,  change  the current directory to arg.
  7.               If arg is  not  specified,  change  to  the  second
  8.               directory  on  the stack (that is, exchange the top
  9.               two entries), or change to the value of HOME if the
  10.               PUSHD_TO_HOME option is set or if there is only one
  11.               entry on the stack.  If arg is  -,  change  to  the
  12.               value  of  OLDPWD,  the  previous  directory.  If a
  13.               directory named arg is not  found  in  the  current
  14.               directory  and arg does not contain a slash, search
  15.               each component of the shell parameter  cdpath.   If
  16.               the option CDABLEVARS is set, and a parameter named
  17.               arg exists whose value begins with a  slash,  treat
  18.               its   value   as  the  directory.   If  the  option
  19.               PUSHD_SILENT is not set, the directory  stack  will
  20.               be printed after a pushd is performed.
  21.  
  22.               The second form of pushd substitutes the string new
  23.               for the string old  in  the  name  of  the  current
  24.               directory,  and  tries to change to this new direc-
  25.               tory.
  26.  
  27.               The third form of pushd is equivalent to popd.
  28.