Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
why is 2 the smallest HISTSIZE?
- X-seq: zsh-workers 16606
- From: Derek Peschel <dpeschel@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: why is 2 the smallest HISTSIZE?
- Date: Tue, 12 Feb 2002 04:59:01 -0800
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
The manual refers to a hierarchy of history files: the saved history file,
then the internal history list, then the "last command" buffer which is
always available even if the history list is disabled.
Setting HISTSIZE to zero would disable the history list -- are there
any other ways of disabling it? -- but the code prevents HISTSIZE from
actually becoming zero. I guess that prevention is what creates the
illusion of a "last comamnd" buffer (Is there a separate buffer,
not maintained by the history mechanism?).
But the code uses 2, not 1, as a minimum value for HISTSIZE. So you
actually get the command you're typing and the two you typed eariler.
Did the implementation (of the "last command" buffer) change, but the
2 not get changed to 1? Or do I not understand the code?
Thanks,
-- Derek
Messages sorted by:
Reverse Date,
Date,
Thread,
Author