include busybox after libc includes
[oweals/busybox.git] / shell / msh.c
index a2f98c837207bed9167764c7ddae767e62ea885b..1485ccb6fd426fc779fd4fe6754350096c2ec7cb 100644 (file)
@@ -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);
        }
 }