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


Groups > gnu.bash.bug > #14911 > unrolled thread

Problem with vi mode in bash 5.0 beta

Started byStan Marsh <gazelle@xmission.com>
First post2018-12-12 15:32 -0700
Last post2018-12-12 15:32 -0700
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug


Contents

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

#14911 — Problem with vi mode in bash 5.0 beta

FromStan Marsh <gazelle@xmission.com>
Date2018-12-12 15:32 -0700
SubjectProblem with vi mode in bash 5.0 beta
Message-ID<mailman.5651.1544653994.1284.bug-bash@gnu.org>
(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.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web