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
0001-lineedit-fix-tab-completion-for-files-with-special-c.patch
Description: Binary data
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
