aboutsummaryrefslogtreecommitdiff
path: root/shell/msh.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/msh.c')
-rw-r--r--shell/msh.c2
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)
#endif
}
onecommand();
+ /* Ensure that getenv("PATH") stays current */
+ setenv("PATH", path->value, 1);
}
}