diff options
Diffstat (limited to 'src/pkg/exec/exec.go')
-rw-r--r-- | src/pkg/exec/exec.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/exec/exec.go b/src/pkg/exec/exec.go index 415b900b9..ee3cec686 100644 --- a/src/pkg/exec/exec.go +++ b/src/pkg/exec/exec.go @@ -208,7 +208,7 @@ func LookPath(file string) (string, os.Error) { return "", os.ENOENT } pathenv := os.Getenv("PATH") - for _, dir := range strings.Split(pathenv, ":", 0) { + for _, dir := range strings.Split(pathenv, ":", -1) { if dir == "" { // Unix shell semantics: path element "" means "." dir = "." |