[PATCH 1/2 v2] complete: add device name complete support

Sascha Hauer s.hauer at pengutronix.de
Mon Jun 6 05:58:13 EDT 2011


On Mon, Jun 06, 2011 at 11:11:23AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
>  common/complete.c |   24 ++++++++++++++++++++++++
>  1 files changed, 24 insertions(+), 0 deletions(-)

Sorry, this does not work. Pressing eth<TAB> on an empty command
line expands to

ethact (correct, this is a command)
eth0   (almost correct, it misses the '=')

'ls <TAB>' expands to

ls env/ (correct, this is a directory)
ls eth0 (incorrect, no valid expansion)

'ls n<TAB> expands to

ls nand0     (incorrect, this is a device name and can't be used here=
ls nfsroot=  (incorrect, no valid expansion)

Please check the context in which you are calling the different complete
functions like I suggested in my comment to the last patch.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list