From 76364ea767cca7ca8f6570a049fbb8d3fff751a9 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 24 Sep 2023 13:20:49 +0900 Subject: [PATCH] Remove unnecessary escaping in the default command --- src/constants.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants.go b/src/constants.go index 96d9821..76211dc 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-"` } }