From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: zsh-workers@math.gatech.edu
Cc: wez@twinklestar.demon.co.uk
Subject: Re: Zle bug
Date: Sun, 1 Feb 1998 15:41:48 +0100 [thread overview]
Message-ID: <19980201154148.01576@picard.franken.de> (raw)
In-Reply-To: <199802010316.DAA17515@twinklestar.demon.co.uk>; from Wez Furlong on Sun, Feb 01, 1998 at 03:16:02AM +0000
On Feb 1, Wez Furlong wrote
> Hi,
>
> I am reporting a bug that is present in zsh 3.1.2 and also 3.1.2-zefram3.
> I have mentioned it before (when 3.1.2 was first released) but it does not
> appear to have been addressed.
>
> Here's a demonstration:
>
> % > zsh -f
> % > echo $ZSH_VERSION
> 3.0.5
> % > bindkey '\e[A' up-line-or-search
> % > who
> wez tty3 Feb 1 00:37
> root tty4 Feb 1 00:42
> root tty2 Jan 31 16:51
> wez tty5 Feb 1 01:42
> % > ls
> Admin Personal UNI root
> Amiga Povray Wez-Crontab spambounce.tar.gz
> Dave Src mail.vim tmp
> PCMCIA Stuff mbox
> % > w
>
> At this point I press cursor up
>
> % > who
>
> This is correct.
I'd say "no, it's a bug" ;-)
> And here is the bug, with 3.1.2:
>
> % > zsh -f
> % > echo $ZSH_VERSION
> 3.1.2
> % > bindkey '\e[A' up-line-or-search
> % > who
> wez tty3 Feb 1 00:37
> root tty4 Feb 1 00:42
> root tty2 Jan 31 16:51
> wez tty5 Feb 1 01:42
> % > ls
> Admin Personal UNI root
> Amiga Povray Wez-Crontab spambounce.tar.gz
> Dave Src mail.vim tmp
> PCMCIA Stuff mbox
> % > w
>
> Pressing cursor up produces a beep.
>
> % > w
Looking at the manpages, I found this:
up-line-or-search
Move up a line in the buffer, or if already at the
top line, search backward in the history for a line
beginning with the first word in the buffer.
It works like this:
~> zsh -f
% echo $ZSH_VERSION
3.1.2
% bindkey '\e[A' up-line-or-search
% ls -l
total 1503
[snip]
% pwd
/home/jean-luc
% l_
^
Cursor here, hit cursor-up -> beeps, because the _word_ l wasn't
found in the history
% ls_
^
Cursor here, hit cursor-up -> expands to ls -l
This behaviour seems to be OK, looking at the documentation...
Perhaps this can't be done in zsh-3.1.2 as it is now, we may need
something like "up-line-or-history-beginning-search-backward". ;-)
CU,
Thomas [using history-beginning-search-backward]
--
-- Thomas Köhler Email: jean-luc@picard.franken.de
<>< jean-luc@mayn.de
IRC: jeanluc Channels: #star_trek #linuxger #ixthys #knf
WWW: http://home.pages.de/~jeanluc/
next prev parent reply other threads:[~1998-02-01 19:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-01 3:16 Wez Furlong
1998-02-01 14:41 ` Thomas Köhler [this message]
1998-02-09 12:57 ` Anthony JR Heading
1998-02-02 2:58 Wez Furlong
[not found] <aheading@jpmorgan.com>
1998-02-09 13:23 ` Wez Furlong
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=19980201154148.01576@picard.franken.de \
--to=jean-luc@picard.franken.de \
--cc=wez@twinklestar.demon.co.uk \
--cc=zsh-workers@math.gatech.edu \
/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).