From 51173100bf4a7cdc9d13aa95df7903e86f5fe402 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Wed, 4 May 2016 19:40:08 +0200 Subject: [PATCH] Fix bug in excluding paths to cscope --- cscope_gen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cscope_gen.sh b/cscope_gen.sh index 3f3265d..b7b315d 100755 --- a/cscope_gen.sh +++ b/cscope_gen.sh @@ -29,7 +29,7 @@ incl_extensions="-name *.$(join " -o -name *." "${include_extensions[@]}")" #Don't expand * - see http://stackoverflow.com/questions/102049/how-do-i-escape-the-wildcard-asterisk-character-in-bash set -f -find . \( $excl_paths -o $incl_extensions \) -a -type f $excl_files > cscope.files +find . \( $excl_paths -o \( $incl_extensions \) \) -a -type f $excl_files > cscope.files set +f exec cscope -b -q