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