diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-04-26 23:40:09 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-04-26 23:40:09 +0000 |
commit | 1b34b996888429358b71dc9e943a1c0ae98aa040 (patch) | |
tree | 9c1339c37bea59728464b9372e80d37554185f9c /shell/msh.c | |
parent | 99384df4df1e1c4eacdedfd0f2655335acc33b70 (diff) | |
download | busybox-w32-1b34b996888429358b71dc9e943a1c0ae98aa040.tar.gz busybox-w32-1b34b996888429358b71dc9e943a1c0ae98aa040.tar.bz2 busybox-w32-1b34b996888429358b71dc9e943a1c0ae98aa040.zip |
Ensure that getenv("PATH") stays current, since otherwise cmdedit
(which calls getenv("PATH")) would not operate upon the current
PATH settings, which was really quite iritating.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@4677 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r-- | shell/msh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/msh.c b/shell/msh.c index a2f98c837..1485ccb6f 100644 --- a/shell/msh.c +++ b/shell/msh.c | |||
@@ -842,6 +842,8 @@ extern int msh_main(int argc, char **argv) | |||
842 | #endif | 842 | #endif |
843 | } | 843 | } |
844 | onecommand(); | 844 | onecommand(); |
845 | /* Ensure that getenv("PATH") stays current */ | ||
846 | setenv("PATH", path->value, 1); | ||
845 | } | 847 | } |
846 | } | 848 | } |
847 | 849 | ||