zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: <zsh-workers@sunsite.dk>
Subject: Re: Proposed history improvements
Date: Thu, 10 May 2001 09:11:35 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.33L2.0105100802340.18087-100000@phong.blorf.net> (raw)
In-Reply-To: <1010510070413.ZM14821@candle.brasslantern.com>

On Thu, 10 May 2001, Bart Schaefer wrote:
> I'd much rather decide after the fact that I didn't want that command
> put into the history; for example, I'd expunge all commands involving
> typographical errors as soon as I'd had a chance to retrieve them and
> fix the error, so that correct commands are never pushed out of the
> history file by mistaken ones.

Yeah, I was thinking about that too, but I hadn't decided on a good way
to do it yet.  I'm thinking that it might be nice to have a "delete this
history line" key sequence, and perhaps a combination of that with "...
and accept this line".  Such a command would immediately remove the line
out of the internal history, and if we're incrementally updating the
history file it would have to take steps to ensure that the line was
removed from everyone else reading the history file (such as adding the
line with a flag after the timestamp, and leaving the flag-line around
long enough that we assume all shells have read in the removal
instruction -- this is kinda tricky and might not be 100% effective).

> [...] HIST_IMMEDIATE_DROP, on which I have no comment except to say I
> think it's extraneous.)

I have no strong opinion either way, except to say that I will never use
HIST_IMMEDIATE_DROP.  Anyone else care to weigh in on this?

..wayne..


  reply	other threads:[~2001-05-10 16:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-09 22:45 Wayne Davison
2001-05-10  3:36 ` Zefram
2001-05-10  5:54   ` Wayne Davison
2001-05-10  9:00     ` Peter Stephenson
2001-05-10 16:59       ` Andrej Borsenkow
2001-05-10  7:04   ` Bart Schaefer
2001-05-10 16:11     ` Wayne Davison [this message]
2001-05-11  9:55       ` Sven Wischnowsky

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=Pine.LNX.4.33L2.0105100802340.18087-100000@phong.blorf.net \
    --to=wayned@users.sourceforge.net \
    --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).