aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-02-06 10:33:19 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-02-06 10:33:19 +0000
commita691ddd5da0a3e1d6e62f5ae9e5d0a01f9f4ebfd (patch)
treeb542885752ac3ff73ba230d1199615b4f32d3a6b /shell
parentabfa1e3b269161d6a6791d6ed2c3655d720997f8 (diff)
downloadbusybox-w32-a691ddd5da0a3e1d6e62f5ae9e5d0a01f9f4ebfd.tar.gz
busybox-w32-a691ddd5da0a3e1d6e62f5ae9e5d0a01f9f4ebfd.tar.bz2
busybox-w32-a691ddd5da0a3e1d6e62f5ae9e5d0a01f9f4ebfd.zip
Patch from vodz, based on bug report from Richard Kojedzinszky:
Richard, >I have a problem, which I can reproduce now. I am using pre7 version of >busybox, and the tab completion works fine. I mean, with an empty command >line I press the TAB twice, and ash shows me the available commands. But >when i process the profile file below, as > $ . /etc/profile >then it stops working, and the double-tab lists the directories available >from the cwd, and not the commands. Has someone else meet this problem >before, or am i doing something wrong? > >This is my '/etc/profile': >- --- ># System profile > >PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin >export PATH >trap ":" INT QUIT TERM > >export PS1="\h \w # " Thanks. Patch attached. --w vodz git-svn-id: svn://busybox.net/trunk/busybox@8421 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 1fe1e8290..e27d2e088 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -4126,9 +4126,6 @@ changepath(const char *newval)
4126 firstchange = 0; 4126 firstchange = 0;
4127 clearcmdentry(firstchange); 4127 clearcmdentry(firstchange);
4128 builtinloc = idx_bltin; 4128 builtinloc = idx_bltin;
4129#ifdef CONFIG_FEATURE_COMMAND_TAB_COMPLETION
4130 cmdedit_path_lookup = newval;
4131#endif
4132} 4129}
4133 4130
4134 4131
@@ -6026,6 +6023,7 @@ retry:
6026 if (!iflag || parsefile->fd) 6023 if (!iflag || parsefile->fd)
6027 nr = safe_read(parsefile->fd, buf, BUFSIZ - 1); 6024 nr = safe_read(parsefile->fd, buf, BUFSIZ - 1);
6028 else { 6025 else {
6026 cmdedit_path_lookup = pathval();
6029 nr = cmdedit_read_input((char *) cmdedit_prompt, buf); 6027 nr = cmdedit_read_input((char *) cmdedit_prompt, buf);
6030 if(nr == 0) { 6028 if(nr == 0) {
6031 /* Ctrl+C presend */ 6029 /* Ctrl+C presend */