zsh-workers
 help / color / mirror / code / Atom feed
From: greg@klanderman.net (Greg Klanderman)
To: zsh-workers@sunsite.auc.dk (Zsh list)
Subject: bug in vared with command history
Date: Tue, 8 Feb 2000 20:51:04 -0500 (EST)	[thread overview]
Message-ID: <14496.51208.319493.828639@phl.itasoftware.com> (raw)


(I sent this a few weeks ago and about a week later got a bounce
saying it was undeliverable so I am trying it again.  Please copy me
in any replies.)



In zsh 3.1.5,

% foo=bar
% fc -R <(echo one ; echo two) ; vared -h -p "> " foo

The inital contents is "bar".
Hit up-arrow once and you have "one", not "two".
Once the command completes, you can see that "two" has 
made it into the history.

I assume it is preventing you from getting at the last
command because that's usually the one you're executing.
But I'd like to be able to do something like:

    while cmd="" && vared -h -p "> " cmd ; do
      # process $cmd
      fc -R <(echo "$cmd")
    done

which works great except that I can never get to the very 
last command in the history.

thanks,
Greg


             reply	other threads:[~2000-02-09  1:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-09  1:51 Greg Klanderman [this message]
2000-02-09  4:11 ` Bart Schaefer
     [not found]   ` <14498.3514.295845.822718@phl.itasoftware.com>
     [not found]     ` <1000210075838.ZM1677@candle.brasslantern.com>
2000-02-10 19:49       ` Greg Klanderman

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=14496.51208.319493.828639@phl.itasoftware.com \
    --to=greg@klanderman.net \
    --cc=zsh-workers@sunsite.auc.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).