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

* Re: why is 2 the smallest HISTSIZE?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2002-02-12 15:53 UTC (permalink / raw)
  To: Derek Peschel, zsh-workers

On Feb 12,  4:59am, Derek Peschel wrote:
}
} Did the implementation (of the "last command" buffer) change, but the
} 2 not get changed to 1?

I think that's what happened, but only Wayne Davison can say for certain.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* Re: why is 2 the smallest HISTSIZE?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Wayne Davison @ 2002-02-12 19:30 UTC (permalink / raw)
  To: Derek Peschel; +Cc: zsh-workers

On Tue, 12 Feb 2002, Derek Peschel wrote:
> Setting HISTSIZE to zero would disable the history list -- are there
> any other ways of disabling it?

One (drastic) way to disable it is to "unsetopt zle".  Of course, it
disables all the fancy command-line editing as well.

> 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?).

Right (there's no separate buffer).

> Did the implementation (of the "last command" buffer) change, but the
> 2 not get changed to 1?

Yeah, looks like I overlooked this "2" value.  I'll fix this.

..wayne..


^ 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).