zsh-workers
 help / color / mirror / code / Atom feed
From: Derek Peschel <dpeschel@eskimo.com>
To: zsh-workers@sunsite.dk
Subject: why is 2 the smallest HISTSIZE?
Date: Tue, 12 Feb 2002 04:59:01 -0800	[thread overview]
Message-ID: <20020212045901.A10430@eskimo.eskimo.com> (raw)

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


             reply	other threads:[~2002-02-12 12:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-12 12:59 Derek Peschel [this message]
2002-02-12 15:53 ` Bart Schaefer
2002-02-12 19:30 ` Wayne Davison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020212045901.A10430@eskimo.eskimo.com \
    --to=dpeschel@eskimo.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).