
Hi Ralf,
Enable the auto completion (with TAB) of the environment variable name after the editenv command.
Signed-off-by: Ralf Trübenbach ralf.truebenbach@men.de
The idea looks good, but the patch as such is not usable:
[dzu@pollux u-boot-testing (misc-fixes)]$ git am -3 -u ~/p1 Applying: command.c: Enable auto tab for the editenv command error: command.c: does not exist in index fatal: sha1 information is lacking or useless (command.c). Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge. Patch failed at 0001 command.c: Enable auto tab for the editenv command When you have resolved this problem run "git am -3 --resolved". If you would prefer to skip this patch, instead run "git am -3 --skip". To restore the original branch and stop patching run "git am -3 --abort". [dzu@pollux u-boot-testing (misc-fixes|AM)]$
How did you create the patch? Please follow the instructions[1] in order to make life easier for everybody.
=== modified file 'common/command.c' (properties changed: -x to +x)
This also looks strange - we certainly don't want execute rights on source files.
--- common/command.c 2009-11-22 23:06:11 +0000 +++ common/command.c 2010-04-08 15:12:44 +0000 @@ -188,6 +188,9 @@
void install_auto_complete(void) { +#if defined(CONFIG_CMD_EDITENV)
install_auto_complete_handler("editenv", var_complete);
+#endif install_auto_complete_handler("printenv", var_complete); install_auto_complete_handler("setenv", var_complete); #if defined(CONFIG_CMD_RUN)
Cheers Detlev
[1] http://www.denx.de/wiki/U-Boot/Patches