LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2010 The Go Authors. All rights reserved. | 1 // Copyright 2010 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package exec | 5 package exec |
6 | 6 |
7 import ( | 7 import ( |
8 "errors" | 8 "errors" |
9 "os" | 9 "os" |
10 "strings" | 10 "strings" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } | 73 } |
74 if pathenv := os.Getenv(`PATH`); pathenv != `` { | 74 if pathenv := os.Getenv(`PATH`); pathenv != `` { |
75 for _, dir := range strings.Split(pathenv, `;`) { | 75 for _, dir := range strings.Split(pathenv, `;`) { |
76 if f, err = findExecutable(dir+`\`+file, exts); err == n
il { | 76 if f, err = findExecutable(dir+`\`+file, exts); err == n
il { |
77 return | 77 return |
78 } | 78 } |
79 } | 79 } |
80 } | 80 } |
81 return ``, &Error{file, ErrNotFound} | 81 return ``, &Error{file, ErrNotFound} |
82 } | 82 } |
LEFT | RIGHT |