zsh-workers
 help / color / mirror / code / Atom feed
* bug in vared with command history
@ 2000-02-09  1:51 Greg Klanderman
  2000-02-09  4:11 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Klanderman @ 2000-02-09  1:51 UTC (permalink / raw)
  To: Zsh list


(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


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

* Re: bug in vared with command history
  2000-02-09  1:51 bug in vared with command history Greg Klanderman
@ 2000-02-09  4:11 ` Bart Schaefer
       [not found]   ` <14498.3514.295845.822718@phl.itasoftware.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2000-02-09  4:11 UTC (permalink / raw)
  To: greg, Zsh list

On Feb 8,  8:51pm, Greg Klanderman wrote:
} Subject: bug in vared with command history
}
} % foo=bar
} % fc -R <(echo one ; echo two) ; vared -h -p "> " foo
} 
} Hit up-arrow once and you have "one", not "two".

This has already been changed to work the way you want, in 3.1.6-dev-17.

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


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

* Re: bug in vared with command history
       [not found]     ` <1000210075838.ZM1677@candle.brasslantern.com>
@ 2000-02-10 19:49       ` Greg Klanderman
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Klanderman @ 2000-02-10 19:49 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: Zsh list


>>>>> "Bart" == Bart Schaefer <schaefer@candle.brasslantern.com> writes:

> The whole 3.1.x series is considered to be an unstable beta

Ha!!  I started using zsh about a year ago (3.1.4) and I have to say
it has been the most reliable free software I've ever used... let
alone for a BETA.  By comparison, when I decided to switch to a Bourne 
style shell from tcsh, I first went to BASH (2.02) which is supposed
to be a stable release.  Within about 2 days I'd found at least ten
ways to crash it hard, was disgusted, and switched to zsh at the
recommendation of a few xemacs-beta list members.  It's the only
worthy shell in MHO.

Keep up the excellent work!

Greg


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

end of thread, other threads:[~2000-02-10 19:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-09  1:51 bug in vared with command history Greg Klanderman
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

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