Permalink
Browse files

BUGFIX quote the pattern

Otherwise spaces will creep in
  • Loading branch information...
1 parent 178fa6f commit f42d55d7ae93b0a28dfc2c60b161c5b87756547b @samuelrivas committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 rgrexp.sh
View
@@ -17,5 +17,5 @@ if [ -z "$DIR" ]; then
DIR="."
fi
-find $DIR -name "$FILES" | xargs grep --color $PATTERN
+find $DIR -name "$FILES" | xargs grep --color "$PATTERN"

0 comments on commit f42d55d

Please sign in to comment.