aboutsummaryrefslogtreecommitdiff
path: root/common/command.c
diff options
context:
space:
mode:
authorMike Frysinger2010-12-17 16:51:59 -0500
committerWolfgang Denk2011-01-09 17:57:37 +0100
commit560d424b6d7cd4205b062ad95f1b104bd4f8bcc3 (patch)
tree5a429e36ad18a8fa2e0b026d143c38d7f3d493af /common/command.c
parent42df1e1618f2bcae308ad193a136b72b82103bea (diff)
env: re-add support for auto-completion
Currently, only basic completion is supported (no globs), but this is what we had previously. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/command.c b/common/command.c
index ef4a081109d..b3ec510a27c 100644
--- a/common/command.c
+++ b/common/command.c
@@ -162,7 +162,6 @@ int cmd_usage(cmd_tbl_t *cmdtp)
int var_complete(int argc, char * const argv[], char last_char, int maxv, char *cmdv[])
{
-#if 0 /* need to reimplement */
static char tmp_buf[512];
int space;
@@ -173,7 +172,7 @@ int var_complete(int argc, char * const argv[], char last_char, int maxv, char *
if (!space && argc == 2)
return env_complete(argv[1], maxv, cmdv, sizeof(tmp_buf), tmp_buf);
-#endif
+
return 0;
}