Bug 9361

Summary: tab-completion bug
Product: Busybox Reporter: 4yg_4mm6p8ifiten
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: config
lineedit: don't match applets if command contains '/'

Description 4yg_4mm6p8ifiten 2016-10-15 22:00:49 UTC
I just updated from 1.24.1 to 1.25.1 and noticed a bug in tab-completion


$ mkdir x
$ ./x<TAB>
x/     xargs  xz     xzcat           <- applets are shown even
$ ./xa<TAB>
$ ./xargs
-sh: ./xargs: not found
$ which xargs
/usr/bin/xargs
$ xargs --help
Usage: xargs .......


As you see, the applets are shown if a executable or directory should be completed. The applet is not in the auto-completed path and shows "not found"
Comment 1 4yg_4mm6p8ifiten 2016-10-15 22:03:59 UTC
Created attachment 6761 [details]
config
Comment 2 Ron Yorston 2016-10-19 13:14:22 UTC
Created attachment 6771 [details]
lineedit: don't match applets if command contains '/'
Comment 3 4yg_4mm6p8ifiten 2016-10-19 18:49:58 UTC
Thanks, patch works great!
Comment 4 Denys Vlasenko 2016-10-23 23:26:07 UTC
applied, thanks!