From: Eric Andersen Date: Wed, 8 Sep 2004 10:01:07 +0000 (-0000) Subject: Patrick Huesmann noticed BusyBox would not link when X-Git-Tag: 1_00~45 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a79c0e9e149fa16e97aea6841d7efd71c775b50;p=oweals%2Fbusybox.git 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 --- 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 */