diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-09-24 13:20:49 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-09-24 13:23:40 +0900 |
commit | 76364ea767cca7ca8f6570a049fbb8d3fff751a9 (patch) | |
tree | 9724600d5519865eb0663770b1dda168a4f38179 /src/constants.go | |
parent | 8eec50d764878628236566e0ef9767688b6de8d0 (diff) |
Remove unnecessary escaping in the default command
Diffstat (limited to 'src/constants.go')
-rw-r--r-- | src/constants.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/constants.go b/src/constants.go index 96d9821d..76211dcd 100644 --- a/src/constants.go +++ b/src/constants.go @@ -58,9 +58,9 @@ var defaultCommand string func init() { if !util.IsWindows() { - defaultCommand = `set -o pipefail; command find -L . -mindepth 1 \( -path '*/\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \) -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-` + defaultCommand = `set -o pipefail; command find -L . -mindepth 1 \( -path '*/.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \) -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-` } else if os.Getenv("TERM") == "cygwin" { - defaultCommand = `sh -c "command find -L . -mindepth 1 -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-"` + defaultCommand = `sh -c "command find -L . -mindepth 1 -path '*/.*' -prune -o -type f -print -o -type l -print 2> /dev/null | cut -b3-"` } } |