From: greg@klanderman.net (Greg Klanderman)
To: zsh-workers@sunsite.auc.dk (Zsh list)
Subject: small history bugs in zsh 3.1.9
Date: Wed, 18 Oct 2000 23:32:32 -0400 (EDT) [thread overview]
Message-ID: <14830.27472.293944.627458@phl.itasoftware.com> (raw)
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
next reply other threads:[~2000-10-19 3:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-19 3:32 Greg Klanderman [this message]
2000-10-19 14:50 ` Bart Schaefer
2000-10-19 17:01 ` 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=14830.27472.293944.627458@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).