mirror of
https://github.com/golang/go
synced 2024-11-14 13:30:30 -07:00
use slices.Clip
This commit is contained in:
parent
d33e2638d6
commit
9986537cad
@ -14,6 +14,7 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"reflect"
|
||||
"slices"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
@ -211,7 +212,7 @@ func RunStdin(cmdline []string) {
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
env := cfg.OrigEnv[:len(cfg.OrigEnv):len(cfg.OrigEnv)]
|
||||
env := slices.Clip(cfg.OrigEnv)
|
||||
env = AppendPATH(env)
|
||||
cmd.Env = env
|
||||
StartSigHandlers()
|
||||
|
Loading…
Reference in New Issue
Block a user