From: Bryan C. Mills Date: Fri, 8 Dec 2023 22:01:43 +0000 (-0500) Subject: doc: document os/exec changes on Windows X-Git-Tag: go1.22rc1~50 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=59275e266a222564fc1a39f17b913a74838478f4;p=gostls13.git doc: document os/exec changes on Windows For #61422. Updates #62596. Updates #61493. Change-Id: I5c910f9961da24d90b3618ee53540118db06ff91 Reviewed-on: https://go-review.googlesource.com/c/go/+/548481 Auto-Submit: Bryan Mills Reviewed-by: Alex Brainman Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI --- diff --git a/doc/go1.22.html b/doc/go1.22.html index b363aaf14b..bbd71b5893 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -650,11 +650,22 @@ defer func() {
os/exec

- TODO: https://go.dev/cl/528037: os/exec: fix edge cases in Windows PATH resolution -

- -

- TODO: https://go.dev/cl/528038: os/exec: avoid calling LookPath in cmd.Start for resolved paths + On Windows, LookPath now + ignores empty entries in %PATH%, and returns + ErrNotFound (instead of ErrNotExist) if + no executable file extension is found to resolve an otherwise-unambiguous + name. +

+ +

+ On Windows, Command and + Cmd.Start no + longer call LookPath if the path to the executable is already + absolute and has an executable file extension. In addition, + Cmd.Start no longer writes the resolved extension back to + the Path field, + so it is now safe to call the String method concurrently + with a call to Start.