From 8889bdf39cdd83ee06c5cfb353f1884bb00b5ed5 Mon Sep 17 00:00:00 2001 From: Ficus Kirkpatrick Date: Mon, 1 Mar 2010 16:51:47 -0800 Subject: [PATCH] Make cgrep look for *.c, *.cc, *.cpp, *.h exclusively. It was doing '*.c*' which both included .class files and omitted .h files. Change-Id: Iedaac4f7ee86df86fdc38341c04ca565f34223b4 --- envsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envsetup.sh b/envsetup.sh index a76deb9fd7..1c114d0406 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -771,7 +771,7 @@ function jgrep() function cgrep() { - find . -type f -name "*\.c*" -print0 | xargs -0 grep --color -n "$@" + find . -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@" } function resgrep()