Bug 4064 - libedit's history search is broken
Summary: libedit's history search is broken
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 3.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: msmith
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1997-07-09 00:10 UTC by Helbig
Modified: 1997-07-14 14:24 UTC (History)
0 users

See Also:


Attachments
file.diff (1.58 KB, patch)
1997-07-09 00:10 UTC, Helbig
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helbig 1997-07-09 00:10:01 UTC
	The error shows up e. g. in sh(1), which uses the libedit.
	Do a ``set -o vi'' to enable vi style line editing.
	If you search for `ls' in the history, the shell will either
	show all commands that contain a `l', or will beep at you,
	even if there are commands that contain `ls' in the past.

How-To-Repeat: 
	Enter the following commands to get a history.
	# sh
	# set -o vi
	# lll
	# llll

	Now hit the escape key to enter the vi commands, enter
	/llll, to search for the last occurence of the string `llll'
	in the history. Depending on whatever, the shell will show
	you the command `llll', which is correct, or beep at you,
	which is wrong.  Hit the `N'-key to repeat the search, the
	shell might show you `lll', which is wrong, it should beep
	at you instead.
Comment 1 msmith freebsd_committer freebsd_triage 1997-07-14 14:21:23 UTC
State Changed
From-To: open->closed

Fixed in r1.6 by applying suppliedpatch. 


Comment 2 msmith freebsd_committer freebsd_triage 1997-07-14 14:21:23 UTC
Responsible Changed
From-To: freebsd-bugs->msmith@freebsd.org


I broke it, I'll fix it.