From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8639 invoked from network); 1 Feb 1998 19:33:11 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 1 Feb 1998 19:33:11 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id OAA22578; Sun, 1 Feb 1998 14:19:47 -0500 (EST) Resent-Date: Sun, 1 Feb 1998 14:19:47 -0500 (EST) Message-ID: <19980201154148.01576@picard.franken.de> Date: Sun, 1 Feb 1998 15:41:48 +0100 From: =?iso-8859-1?Q?Thomas_K=F6hler?= To: zsh-workers@math.gatech.edu Cc: wez@twinklestar.demon.co.uk Subject: Re: Zle bug References: <199802010316.DAA17515@twinklestar.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.73 In-Reply-To: <199802010316.DAA17515@twinklestar.demon.co.uk>; from Wez Furlong on Sun, Feb 01, 1998 at 03:16:02AM +0000 X-Disclaimer: Linux rulez X-Operating-System: Linux picard 2.0.32 X-linuxger-url: http://www.linuxger.de/ X-ixthys-url: http://home.pages.de/~ixthys/ Resent-Message-ID: <"KGPpa3.0.jW5.JhCrq"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3756 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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/