zsh-workers
 help / color / mirror / code / Atom feed
* small history bugs in zsh 3.1.9
@ 2000-10-19  3:32 Greg Klanderman
  2000-10-19 14:50 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Klanderman @ 2000-10-19  3:32 UTC (permalink / raw)
  To: Zsh list


Hi all you zsh wizards,

with no .zshenv file, if "history" is the first command it is listed
in the history:

    [~] phl| /phl/build/zsh-3.1.9/Src/zsh
    phl% history
        1  history
    phl% 

if it is the second command you get an error:

    [~] phl| /phl/build/zsh-3.1.9/Src/zsh
    phl% pwd
    /home/greg
    phl% history
    fc: no such event: 1
    phl% 

otherwise, it is not listed:

    [~] phl| /phl/build/zsh-3.1.9/Src/zsh
    phl% pwd
    /home/greg
    phl% echo foo
    foo
    phl% history
        1  pwd
        2  echo foo
    phl% 

also, there is a bad interaction with precmd.  if .zshenv is:

    reload () {
      precmd () {
        unset -f precmd
        source ~/.zshenv
      }
    }

and you start zsh and execute:

    phl% pwd
    /home/greg
    phl% cd
    phl% reload
    phl% pwd
    /home/greg
    phl% echo foo
    foo
    phl% history
        1  pwd
        2  cd
        3  reload
        4  echo foo
    phl% 

notice that the command after "reload" does not make it into the
history.

these problems didn't exist in 3.1.6.

many thanks for all your hard work,
Greg

greg@klanderman.net


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-19  3:32 small history bugs in zsh 3.1.9 Greg Klanderman
2000-10-19 14:50 ` Bart Schaefer
2000-10-19 17:01   ` 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).