NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/54510: libedit: filename completion broken in quote/double quaote



>Number:         54510
>Category:       lib
>Synopsis:       libedit: filename completion broken in quote/double quaote
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 30 12:40:00 +0000 2019
>Originator:     Rin Okuyama
>Release:        9.99.10
>Organization:
Department of Physics, Meiji University
>Environment:
NetBSD latipes 9.99.10 NetBSD 9.99.10 (AMD64) #0: Tue Aug 27 23:08:36 JST 2019  rin@latipes:/build/src/sys/arch/amd64/compile/AMD64 amd64
>Description:
Filename completion is broken in quote/double quote since
lib/libedit/filecomplete.c rev 1.53:

http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/filecomplete.c#rev1.53

For example, with /bin/sh:

	$ pwd
	/
	$ ls '<TAB><TAB><TAB>...
	-->
	$ ls '
	(nothing happens)

Also:

	$ ls '/<TAB>
	-->
	$ ls '/'
	(the shortest candidate is selected?)

With filecomplete.c rev 1.52, both work fine:

	$ ls '<TAB><TAB>
	.cshrc      boot.cfg    etc/        libdata/    netbsd.old  stand/
	...
	$ ls '/<TAB><TAB>
	/.cshrc      /boot.cfg    /etc/        /libdata/    /netbsd.old  /stand/
	...
>How-To-Repeat:
Described above.
>Fix:
N/A, but as a workaround, reverting filecomplete rev 1.53:

http://www.netbsd.org/~rin/libedit_revert_filecomplete_1.53.patch

fixes the problems for me.



Home | Main Index | Thread Index | Old Index