(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.


Reply via email to