From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Huy Le <huyle@chop.ugcs.caltech.edu>, zsh-workers@math.gatech.edu
Subject: Re: Remaining zsh3.0-pre2 bugs
Date: Sat, 6 Jul 1996 22:53:13 -0700 [thread overview]
Message-ID: <960706225315.ZM2148@candle.brasslantern.com> (raw)
In-Reply-To: Huy Le <huyle@chop.ugcs.caltech.edu> "Remaining zsh3.0-pre2 bugs" (Jul 6, 3:59pm)
On Jul 6, 3:59pm, Huy Le wrote:
} Subject: Remaining zsh3.0-pre2 bugs
}
} 1. History bug:
} The magic-space binding seems to mess up the history of
} a line with a quoted argument that spawns two lines.
This is not a magic-space bug, specifically. It happens any time
doexpandhist() is called on the second or later line of a command
that spans multiple lines.
} pride% echo 'a
} > b' c
} a
} b c
} pride% history
} 1 bindkey ' ' magic-space
} 2 history
} 3 c
} 4 history
But you can get the same thing with:
zsh[83] echo 'a
> b' c<TAB><RET> <-- `c' menu-completes to `co'
a
b co
zsh[84] history -2
82 history
83 co
84 history -2
Here's an even worse case; the command vanishes entirely:
zsh[85] echo 'a
> b'<TAB><RET> <-- TAB moves cursor to beginning of line, then RET
a
b
zsh[85] history -4 <-- Note event number in prompt hasn't changed!
81 c
82 history
83 co
84 history -2
85 history -4
I think the problem is with the "if (!err)" block near the end of
doexpandhist(), because it has a comment about resetting the cursor
to the beginning of line for vi mode. However, I don't know enough
about how history works to want to mess with it.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
New male in /home/schaefer:
>N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"
next prev parent reply other threads:[~1996-07-07 5:59 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-06 22:59 Huy Le
1996-07-07 5:29 ` Bart Schaefer
1996-07-07 5:53 ` Bart Schaefer [this message]
1996-07-07 7:07 ` Bart Schaefer
1996-07-07 6:08 ` Bart Schaefer
1996-07-07 9:06 ` Zefram
1996-07-08 0:48 ` Zoltan Hidvegi
1996-07-08 4:22 ` Bart Schaefer
1996-07-08 6:21 ` Bart Schaefer
1996-07-08 7:57 ` Zefram
1996-07-08 8:48 ` Bart Schaefer
1996-07-09 1:32 ` Zoltan Hidvegi
1996-07-09 9:08 ` Bart Schaefer
1996-07-09 14:06 ` Zoltan Hidvegi
1996-07-10 19:11 ` Bart Schaefer
1996-07-10 19:48 ` Zoltan Hidvegi
1996-07-11 0:04 ` Bart Schaefer
1996-07-11 12:16 ` Zoltan Hidvegi
1996-07-11 16:45 ` Bart Schaefer
1996-07-08 14:28 ` Zoltan Hidvegi
1996-07-08 6:38 ` Bart Schaefer
1996-07-11 8:11 ` Peter Stephenson
1996-07-11 12:51 ` Redirection bug fix Peter Stephenson
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=960706225315.ZM2148@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=huyle@chop.ugcs.caltech.edu \
--cc=schaefer@nbn.com \
--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).