Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

small history bugs in zsh 3.1.9



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@xxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author