Antti Haapala added the comment: While at it, another POSIX semantic that execvp doesn't support is the behaviour when `PATH` is not set, e.g. on Linux, the search path is set to '.', followed by confstr(_CS_PATH). It is debatable whether this is desired (having current directory first in search path doesn't exactly sound right, which is also acknowledged by Linux man pages:
NOTES On some other systems, the default path (used when the environment does not contain the variable PATH) has the current working direc‐ tory listed after /bin and /usr/bin, as an anti-Trojan-horse mea‐ sure. Linux uses here the traditional "current directory first" default path. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19948> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com