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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user