From 4042640eee1c95eb45e3eb773bb55ae556a0208e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 17 Dec 2014 10:53:13 +0000 Subject: zsh-users/19551: history documentation. Note in a couple of places that history file reading and writing is only done in interactive shells. --- Doc/Zsh/builtins.yo | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Doc/Zsh/builtins.yo') diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 446312395..38788d3c4 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -657,6 +657,12 @@ xitem(tt( )[ var(old)tt(=)var(new) ... ] [ var(first) [ var(last) ] ]) xitem(tt(fc) tt(-p) [ tt(-a) ] [ var(filename) [ var(histsize) [ var(savehistsize) ] ] ]) xitem(tt(fc) tt(-P)) item(tt(fc) tt(-ARWI) [ var(filename) ])( +The tt(fc) command controls the interactive history mechanism. Note +that reading and writing of history options is only performed if the +shell is interactive. Usually this is detected automatically, but +it can be forced by setting the tt(interactive) option when starting the +shell. + Select a range of commands from var(first) to var(last) from the history list. The arguments var(first) and var(last) may be specified as a -- cgit 1.4.1