aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-09-08 10:01:07 +0000
committerEric Andersen <andersen@codepoet.org>2004-09-08 10:01:07 +0000
commit4a79c0e9e149fa16e97aea6841d7efd71c775b50 (patch)
tree8eea4393a64c9bedaf8bff2c95cb40c61f735558 /shell
parentfd7a4c8c2887187e901809d89997deefb8b99d97 (diff)
downloadbusybox-4a79c0e9e149fa16e97aea6841d7efd71c775b50.tar.gz
Patrick Huesmann noticed BusyBox would not link when
CONFIG_FEATURE_COMMAND_EDITING was defined *and* CONFIG_FEATURE_COMMAND_TAB_COMPLETION was undefined. Vladimir N. Oleynik writes: Its declare always, also if CONFIG_FEATURE_COMMAND_TAB_COMPLETION undefined. Patch to CVS version attached. --w vodz
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 6c6c28693..f82a77258 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -6050,7 +6050,9 @@ retry:
if (!iflag || parsefile->fd)
nr = safe_read(parsefile->fd, buf, BUFSIZ - 1);
else {
+#ifdef CONFIG_FEATURE_COMMAND_TAB_COMPLETION
cmdedit_path_lookup = pathval();
+#endif
nr = cmdedit_read_input((char *) cmdedit_prompt, buf);
if(nr == 0) {
/* Ctrl+C presend */