We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1489ac commit be41db8Copy full SHA for be41db8
src/os/exec/exec.go
@@ -644,7 +644,7 @@ func (c *Cmd) Start() error {
644
}
645
lp := c.Path
646
if runtime.GOOS == "windows" {
647
- if lp == "" {
+ if c.cacheLookExtensions == "" {
648
// If c.Path is relative, we had to wait until now
649
// to resolve it in case c.Dir was changed.
650
// (If it is absolute, we already resolved its extension in Command
@@ -665,7 +665,7 @@ func (c *Cmd) Start() error {
665
if err != nil {
666
return err
667
668
- } else if c.cacheLookExtensions != "" {
+ } else {
669
lp = c.cacheLookExtensions
670
671
0 commit comments