You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dawidgolunski As far as I can tell exec.LookPath on Windows does not search the directory from which the application loaded at all. It searches the current directory, then the directories on the environment variable path.
I could imagine a exec.LookPathStrict proposal. Do you want to write one (https://golang.org/s/proposal)? It could perhaps ignore . or any relative directory on the PATH/path.
@mislav Documentation changes are fine.
@dawidgolunski As far as I can tell
exec.LookPath
on Windows does not search the directory from which the application loaded at all. It searches the current directory, then the directories on the environment variablepath
.I could imagine a
exec.LookPathStrict
proposal. Do you want to write one (https://golang.org/s/proposal)? It could perhaps ignore.
or any relative directory on thePATH
/path
.Originally posted by @ianlancetaylor in #38736 (comment)
The text was updated successfully, but these errors were encountered: