From e95d82748fc8fe5a05d93b30388ba37adb7dbac8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 7 Feb 2016 01:49:29 +0900 Subject: Use $SHELL to start $FZF_DEFAULT_COMMAND (#481) --- src/reader.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/reader.go') diff --git a/src/reader.go b/src/reader.go index 3e2cf0a0..85cbf8be 100644 --- a/src/reader.go +++ b/src/reader.go @@ -4,7 +4,6 @@ import ( "bufio" "io" "os" - "os/exec" "github.com/junegunn/fzf/src/util" ) @@ -59,7 +58,7 @@ func (r *Reader) readFromStdin() { } func (r *Reader) readFromCommand(cmd string) { - listCommand := exec.Command("sh", "-c", cmd) + listCommand := util.ExecCommand(cmd) out, err := listCommand.StdoutPipe() if err != nil { return -- cgit v1.2.3