Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14911

Problem with vi mode in bash 5.0 beta

From Stan Marsh <gazelle@xmission.com>
Newsgroups gnu.bash.bug
Subject Problem with vi mode in bash 5.0 beta
Date 2018-12-12 15:32 -0700
Message-ID <mailman.5651.1544653994.1284.bug-bash@gnu.org> (permalink)

Show all headers | View raw


(This is all after doing "set -o vi")

In previous versions of bash, I could do the following keys: <Esc> / ^ foo <Enter>
and it would find the most recent command that starts with foo.  This is all as
expected.

However, in bash 5.0 beta (self-compiled), this doesn't work. It always leaves the
cursor line empty (as if there was no matching history line).  If I leave out the ^,
then it works as expected (but, of course, matches the string anywhere, not just at
the beginning of the line).

Incidentally, it occurs to me that I could just do: "fc foo" and it would do pretty
much the same thing (match only at the beginning), but my fingers are used to doing
it the other way.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Problem with vi mode in bash 5.0 beta Stan Marsh <gazelle@xmission.com> - 2018-12-12 15:32 -0700

csiph-web