tab completion with special characters
Mike Shal
marfey at gmail.com
Thu Nov 18 22:25:53 UTC 2010
Hello,
Using ash in busybox git version dea28e1e, tab completion doesn't seem
to work properly for filenames that have special characters (such as
spaces) in them. For example, with filenames "foo bar" and "foo zap",
typing "ls fo<TAB>" correctly expands to "ls foo\ ", but then
continuing to type "b<TAB>" will produce "ls foo\ bbar", which is not
correct (the 'b' is duplicated).
I bisected it down to commit 3c460b005, which made some changes to
lineedit.c. It seems the complete_cmd_dir_file() function is not
accounting for the backslashes that are inserted. The attached commit
seems to fix the issue, though I'm not sure what 3c460b005 was trying
to address so that probably needs to be re-checked.
-Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lineedit-fix-tab-completion-for-files-with-special-c.patch
Type: application/octet-stream
Size: 1561 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20101118/4bacc424/attachment.obj>
More information about the busybox
mailing list