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 "os" | 8 "os" |
9 "strings" | 9 "strings" |
10 ) | 10 ) |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 68 } |
69 } else { | 69 } else { |
70 for _, dir := range strings.Split(pathenv, `;`, -1) { | 70 for _, dir := range strings.Split(pathenv, `;`, -1) { |
71 if f, err = findExecutable(dir+`\`+file, exts); err == n
il { | 71 if f, err = findExecutable(dir+`\`+file, exts); err == n
il { |
72 return | 72 return |
73 } | 73 } |
74 } | 74 } |
75 } | 75 } |
76 return ``, &Error{file, ErrNotFound} | 76 return ``, &Error{file, ErrNotFound} |
77 } | 77 } |
LEFT | RIGHT |