lineedit: search applets as well as PATH for tab completion
authorRon Yorston <rmy@frippery.org>
Fri, 29 May 2015 10:31:40 +0000 (11:31 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Oct 2015 18:49:33 +0000 (19:49 +0100)
commitf23264b35f5bb138c6c3676079251e71bee42c8a
treee6cba0f51f2db6460f81003e98c4a7107145ace8
parentae57af6e78ed7179b2b12675ad86adc4e8d5bebd
lineedit: search applets as well as PATH for tab completion

In standalone shell mode search the applet table as well as PATH
when tab completing a command.

Use a stupid linear search:  we're also about to read all the
directories on PATH so efficiency isn't a big concern.

function                                             old     new   delta
add_match                                              -      53     +53
complete_cmd_dir_file                                687     724     +37
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 90/0)               Total: 90 bytes

Signed-off-by: Ron Yorston <rmy@frippery.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/lineedit.c