Skip to content

Commit d82fe30

Browse files
n
Change-Id: I3d1f59eb50c754715d333526b84f7cebee65476a
1 parent b41c326 commit d82fe30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/os/exec/exec.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ type Cmd struct {
333333
// and https://go.dev/issue/43724 for more context.
334334
lookPathErr error
335335

336-
// callLookExtensions indicate whether
336+
// calledLookExtensions indicates whether
337337
// lookExtensions has been called in Cmd.Command.
338-
callLookExtensions bool
338+
calledLookExtensions bool
339339
}
340340

341341
// A ctxResult reports the result of watching the Context associated with a
@@ -440,7 +440,7 @@ func Command(name string, arg ...string) *Cmd {
440440
// Note that we cannot add an extension here for relative paths, because
441441
// cmd.Dir may be set after we return from this function and that may cause
442442
// the command to resolve to a different extension.
443-
cmd.callLookExtensions = true
443+
cmd.calledLookExtensions = true
444444
lp, err := lookExtensions(name, "")
445445
if lp != "" {
446446
cmd.Path = lp
@@ -646,7 +646,7 @@ func (c *Cmd) Start() error {
646646
return c.Err
647647
}
648648
lp := c.Path
649-
if runtime.GOOS == "windows" && !c.callLookExtensions {
649+
if runtime.GOOS == "windows" && !c.calledLookExtensions {
650650
// If c.Path is relative, we had to wait until now
651651
// to resolve it in case c.Dir was changed.
652652
// (If it is absolute, we already resolved its extension in Command

0 commit comments

Comments
 (0)