fc [ -e ename ] [ -m match ] [ old=new ...  ]  [  first  [
fc -l [ -nrdfEiD ] [ -t timefmt ] [ -m match ]
      [ old=new ... ] [ first [ last ] ]
fc -p [ -a ] [ filename [ histsize [ savehistsize ] ] ]
fc -P
fc -ARWI [ filename ]
       Select  a range of commands from first to last from
       list.  The arguments first and last may  be  speci-
       or  as  a  string.  A negative number is used as an
       current  history  event  number.   A  string  spec-
       recent  event beginning with the given string.  All
       old=new, if any, are then  performed  on  the  com-

       If   the  -l  flag is given, the resulting commands
       standard output.  If the -m flag is also given  the
       ment   is taken as a pattern (should be quoted) and
       tory events matching this pattern  will  be  shown.
       editor  program ename is invoked on a file contain-
       tory events.  If ename is not given, the  value  of
       FCEDIT   is  used;  if that is not set the value of
       EDITOR is used; if that is not set a  builtin   de-
       `vi'   is   used.   If  ename  is `-', no editor is
       editing is complete, the edited command is  execut-

       If  first  is  not  specified, it will be set to -1
(the most recent

       event), or to -16 if the -l flag is given.  If last
       ified,  it will be set to first, or to  -1  if  the
-l  flag  is

       given.

       The  flag  -r reverses the order  of  the  commands
       suppresses command numbers when listing.

       Also when listing,
       -d     prints timestamps for each command
       -f      prints  full  time-date  stamps  in  the US
`MM/DD/YY  hh:mm'

              format
       -E     prints  full time-date stamps in  the  Euro-
              hh:mm' format
       -i     prints  full  time-date  stamps  in  ISO8601
`yyyy-mm-dd

              hh:mm' format
       -t fmt prints  time  and date stamps in  the  given
              formatted  with  the  strftime function with
              sions  described  for the %D{string}  prompt
              section  EXPANSION  OF  PROMPT  SEQUENCES in
              resulting formatted string must be  no  more
              acters or will not be printed.
       -D      prints elapsed times; may be combined  with
              options above.

       `fc  -p'  pushes  the  current  history  list  onto
       switches  to  a new history list.  If the -a option
       fied,  this  history  list  will  be  automatically
       current  function  scope is exited, which is a much
       tion than creating a trap function to call `fc  -P'
       no  arguments are specified, the  history  list  is
       $HISTFILE  is  unset, and $HISTSIZE & $SAVEHIST are
       default  values.   If one argument is given, $HIST-
       that filename, $HISTSIZE & $SAVEHIST are  left  un-
       history  file  is  read in (if it exists)  to  ini-
       list.   If a second argument is  specified,  $HIST-
       are  instead  set  to  the single specified numeric
       if a third argument is specified, $SAVEHIST is  set
       value from $HISTSIZE.  You are free to change these
       values  for  the new history list however  you  de-
       manipulate the new history list.

       `fc -P' pops the history list back to an older list
       -p'.   The  current  list is saved to its $HISTFILE
       destroyed  (assuming  that  $HISTFILE and $SAVEHIST
       priately,  of  course).  The values  of  $HISTFILE,
$HISTSIZE, and

       $SAVEHIST  are restored to the values they had when
`fc  -p'  was

       called.   Note  that  this   restoration  can  con-
       these  variables  "local",  so  your best bet is to
       larations  for  these  variables  in functions that
       The  one  other  guaranteed-safe   combination   is
       variables  to be local at the top of your  function
       automatic  option (-a) with `fc -p'.  Finally, note
       legal to manually pop a push marked  for  automatic
       need to do so before the function exits.

       `fc -R' reads the history from the given file,  `fc
-W'  writes

       the  history out to the given file, and `fc -A' ap-
       tory  out  to  the  given file.  If no filename  is
       $HISTFILE  is  assumed.    If   the  -I  option  is
       those  events that are not already contained within
       history  list are added.  If the -I option is added
       only   those  events  that  are  new   since   last
       append/write  to   the  history  file  are  append-
       case,  the  created  file  will  have  no more than
$SAVEHIST entries.

history
       Same as fc -l.

r      Same as fc -e -.
