[U-Boot] [PATCH v3] command.c: Enable auto tab for the editenv command

Trübenbach, Ralf Ralf.Truebenbach at men.de
Wed Apr 14 11:15:16 CEST 2010


Enable the auto completion (with TAB) of the environment variable name 
after the editenv command.

Signed-off-by: Ralf Trübenbach <ralf.truebenbach at men.de>
---
Changes from v2:
> Sorry, but your patch does not apply against current mainline code:
> ...
> It seems your mailer is messing with the white space (silently
> converting TABs to spaces or so?).
Yes you are right, now it (hopefully) should work. Thank you for your
patience :)

diff --git a/common/command.c b/common/command.c
index 0c66b7a..67ad692 100644
--- a/common/command.c
+++ b/common/command.c
@@ -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)


More information about the U-Boot mailing list