zsh-workers
 help / color / mirror / code / Atom feed
* why is 2 the smallest HISTSIZE?
@ 2002-02-12 12:59 Derek Peschel
  2002-02-12 15:53 ` Bart Schaefer
  2002-02-12 19:30 ` Wayne Davison
  0 siblings, 2 replies; 3+ messages in thread
From: Derek Peschel @ 2002-02-12 12:59 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-12 19:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-12 12:59 why is 2 the smallest HISTSIZE? Derek Peschel
2002-02-12 15:53 ` Bart Schaefer
2002-02-12 19:30 ` Wayne Davison

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).