os/exec: LookPath uses a hard coded "/", assuming this is broken on Windows #60680
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?My assumption here is that
os.LookPath
will not work the same on Windows as it does on Linux / Mac. It will try to check thePATH
environment even if the prog passed isutils\myprog.exe
.What did you do?
Read through the source code of
LookPath
.What did you expect to see?
Something like
filepath.Separator
used instead of/
.What did you see instead?
A
/
The text was updated successfully, but these errors were encountered: