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 / history < prev    next >
Text File  |  1993-10-09  |  2KB  |  45 lines

  1.        fc [ -e ename ] [ -nlrdDfEm ] [ old=new ... ] [ first [
  2.               last ] ]
  3.        fc -ARWI [ filename ]
  4.               Select  a range of commands from first to last from
  5.               the history list.  The arguments first and last may
  6.               be  specified  as a number or as a string.  A nega-
  7.               tive number is used as an  offset  to  the  current
  8.               history  event number.  A string specifies the most
  9.               recent event beginning with the given string.   All
  10.               substitutions  old=new,  if any, are then performed
  11.               on the commands.  If the  -l  flag  is  given,  the
  12.               resulting  commands  are listed on standard output.
  13.               If the -m flag is also given the first argument  is
  14.               taken  as a pattern (should be quoted) and only the
  15.               history events matching this pattern will be shown.
  16.               Otherwise  the editor program ename is invoked on a
  17.               file containing these history events.  If ename  is
  18.               not  given,  the  value  of the parameter FCEDIT is
  19.               used.  If ename is "-", no editor is invoked.  When
  20.               editing  is complete, the edited command(s) is exe-
  21.               cuted.  If first is not specified, it will  be  set
  22.               to  -1 (the most recent event), or to -16 if the -l
  23.               flag is given.  If last is not specified,  it  will
  24.               be  set to first, or to -1 if the -l flag is given.
  25.               The flag -r reverses the order of the commands  and
  26.               the  flag  -n suppresses command numbers when list-
  27.               ing.  Also when listing, -d prints  timestamps  for
  28.               each  command, and -f prints full time-date stamps.
  29.               Adding the -E flag causes the dates to  be  printed
  30.               as  `dd.mm.yyyy'.   With  the  -D  flag,  fc prints
  31.               elapsed times.
  32.  
  33.               fc -R reads the history from the given file, fc  -W
  34.               writes the history out to the given file, and fc -A
  35.               appends the history out to the given file.  fc  -AI
  36.               (-WI)  appends  (writes) only those events that are
  37.               new since last incremental append  (write)  to  the
  38.               history  file.  In  any  case the file will have no
  39.               more than SAVEHIST entries.
  40.  
  41.        history [ -nrdDfEm ] [ first [ last ] ]
  42.               Same as fc -l.
  43.  
  44.        r      Equivalent to fc -e -.
  45.