diff --git a/cmd/which.go b/cmd/which.go index 523d5c5..25c2cdb 100644 --- a/cmd/which.go +++ b/cmd/which.go @@ -22,7 +22,7 @@ func Which(cmd string, options BasicOptions) (dir string, err error) { sourceCommand.WriteString(fmt.Sprintf("source %s && ", value)) } - command := exec.Command("/bin/bash", "-c", "which", cmd) + command := exec.Command("which", cmd) if options.Cwd != "" { command.Dir = options.Cwd