File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -440,7 +440,7 @@ func Command(name string, arg ...string) *Cmd {
440
440
// cmd.Dir may be set after we return from this function and that may cause
441
441
// the command to resolve to a different extension.
442
442
lp , err := lookExtensions (name , "" )
443
- cmd .cacheLookExtensions = lp
443
+ cmd .cachedLookExtensions = lp
444
444
if err != nil {
445
445
cmd .Err = err
446
446
}
@@ -642,10 +642,10 @@ func (c *Cmd) Start() error {
642
642
return c .Err
643
643
}
644
644
lp := c .Path
645
- if c .cacheLookExtensions != "" {
646
- lp = c .cacheLookExtensions
645
+ if c .cachedLookExtensions != "" {
646
+ lp = c .cachedLookExtensions
647
647
}
648
- if runtime .GOOS == "windows" && c .cacheLookExtensions == "" {
648
+ if runtime .GOOS == "windows" && c .cachedLookExtensions == "" {
649
649
// If c.Path is relative, we had to wait until now
650
650
// to resolve it in case c.Dir was changed.
651
651
// (If it is absolute, we already resolved its extension in Command
You can’t perform that action at this time.
0 commit comments