summaryrefslogtreecommitdiff
path: root/src/reader.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-01-07 02:24:13 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-01-07 09:59:24 +0900
commit3e129ac68c08d63d304b9d4bf7229ef1152c4163 (patch)
tree85066be2c0c0efb3709db9ee4105ebccccdd9c7c /src/reader.go
parent8a0ab20a70954a5957a648a77a64e05013fbdf9a (diff)
downloadfzf-3e129ac68c08d63d304b9d4bf7229ef1152c4163.tar.gz
Remove extraneous quote-escape
Diffstat (limited to 'src/reader.go')
-rw-r--r--src/reader.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/reader.go b/src/reader.go
index 0e1f0a9c..39fa70cd 100644
--- a/src/reader.go
+++ b/src/reader.go
@@ -5,13 +5,12 @@ import "C"
import (
"bufio"
- "fmt"
"io"
"os"
"os/exec"
)
-const DEFAULT_COMMAND = "find * -path '*/\\.*' -prune -o -type f -print -o -type l -print 2> /dev/null"
+const DEFAULT_COMMAND = `find * -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null`
type Reader struct {
pusher func(string)
@@ -45,8 +44,7 @@ func (r *Reader) readFromStdin() {
}
func (r *Reader) readFromCommand(cmd string) {
- arg := fmt.Sprintf("%q", cmd)
- listCommand := exec.Command("sh", "-c", arg[1:len(arg)-1])
+ listCommand := exec.Command("sh", "-c", cmd)
out, err := listCommand.StdoutPipe()
if err != nil {
return