Path: csiph.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Stan Marsh Newsgroups: gnu.bash.bug Subject: Problem with vi mode in bash 5.0 beta Date: Wed, 12 Dec 2018 15:32:21 -0700 Lines: 16 Approved: bug-bash@gnu.org Message-ID: NNTP-Posting-Host: lists.gnu.org X-Trace: usenet.stanford.edu 1544653994 27047 208.118.235.17 (12 Dec 2018 22:33:14 GMT) X-Complaints-To: action@cs.stanford.edu To: bash@packages.debian.org, bug-bash@gnu.org Envelope-to: bug-bash@gnu.org X-XM-SPF: eid=1gXD3F-0004dw-Gd; ; ; mid=; ; ; hst=mx02.mta.xmission.com; ; ; ip=166.70.8.4; ; ; frm=gazelle@xmission.com; ; ; spf=neutral X-SA-Exim-Connect-IP: 166.70.8.4 X-SA-Exim-Mail-From: gazelle@xmission.com X-SA-Exim-Scanned: No (on mx02.mta.xmission.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 166.70.13.231 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14911 (This is all after doing "set -o vi") In previous versions of bash, I could do the following keys: / ^ foo 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.