Bug 9361 - tab-completion bug
Summary: tab-completion bug
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-15 22:00 UTC by 4yg_4mm6p8ifiten
Modified: 2016-10-23 23:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
config (30.24 KB, text/plain)
2016-10-15 22:03 UTC, 4yg_4mm6p8ifiten
Details
lineedit: don't match applets if command contains '/' (918 bytes, patch)
2016-10-19 13:14 UTC, Ron Yorston
Details

Note You need to log in before you can comment on or make changes to this bug.
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!