]> Cypherpunks.ru repositories - gostls13.git/commit
os/exec: set PWD implicitly if Dir is non-empty and Env is nil
authorBryan C. Mills <bcmills@google.com>
Wed, 20 Apr 2022 21:07:14 +0000 (17:07 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 21 Apr 2022 17:37:05 +0000 (17:37 +0000)
commitb34838913da606087b0f3141891f7d0fb2254eef
treee82ffa5fd4b077814e4d2fe55ca399325f6b81ff
parent115852077f45141b293727558e61c0804661d328
os/exec: set PWD implicitly if Dir is non-empty and Env is nil

Fixes #50599.

Change-Id: I4e5dbb3972cdf21ede049567bfb98f2c992c5849
Reviewed-on: https://go-review.googlesource.com/c/go/+/401340
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
api/next/50599.txt [new file with mode: 0644]
doc/go1.19.html
src/os/exec/example_test.go
src/os/exec/exec.go
src/os/exec/exec_posix_test.go
src/os/exec/exec_test.go