Linux fc command

Netko je dao usporedbu da je ZSH poput BASH-a na steroidima. Mnoge naredbei iz BASH-a su nabildani s dodatnim mogučnostima, pa to vrijedi i za naredbu fc. No, kako otktiri sve te mogučnosti. Prva prepreka s kojom se možemo susresti je da pokušamo s naredbom help -m fc, kao što bismo to učinili u BASH-u. Na naše veliko razočaranje otkrili da bismo da ZSH nema naredbu help. Možda bismo bili pred iskušenjem da pokušamo definirati funkciju poput

bash_help(){ #Function that simualtes "bash help" behavior.
bash -c "help $@"}

...ili biste jednostavno korisitili man 1 zshbuiltins, te tražili željeni pojam... A zapravo ste željeli nešto poput run-help fc. Naredba run-help ima kraticu MOD-h koja je dovoljno pametna da se može korisiti i nakon što je naredba napisan! Pušajte ovaj naputak: fc MOD-h.

Ipak, svaka naredba od koje tražimo pomoć dat će različitu informaciju:

% man bash
% help fc
% man zshbuiltins
% run-help fc

Quick ref

fc - fix command (history)
fc [ -e ename ] [ -m match ] [ old=new ... ] [ first [ last ] ]
fc -l [ -nrdfEiD ] [ -t timefmt ] [ -m match ]
     [ old=new ... ] [ first [ last ] ]
fc -p [ -a ] [ filename [ histsize [ savehistsize ] ] ]
fc -P
fc -ARWI [ filename ]

...ili...

Options:
bash:
    -e ENAME select which editor to use.  Default is FCEDIT, then EDITOR, then vi
    -l       list lines instead of editing
    -n       omit line numbers when listing
    -r       reverse the order of the lines (newest listed first)
zsh:
   -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 European 'dd.mm.yyyy 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 format; fmt is formatted with
            the strftime function with the zsh  extensions  described  for the
            %D{string} prompt format in the section EXPANSION OF PROMPT SEQUENCES in
            zshmisc(1).  The resulting formatted string must be no more than 256
            characters or will not be printed.
   -D       prints elapsed times; may be combined  with  one  of  the options above.
   -A       append the history
   -W       write ""
   -R       redundant ""
   -I       incremental ""

history = fc -l
r = fc -e -