Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8889bdf3 authored by Ficus Kirkpatrick's avatar Ficus Kirkpatrick
Browse files

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
parent a5b1e4e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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()