walk arguments to g

This allows us to 'g' the files
	within a directory, as in:

		g _MAX /sys/include/ape

	Before this change, we'd attempt to
	grep the directory structure, which
	is not ideal. After, we grep the
	files within the directory.
front
Ori Bernstein 2020-02-26 21:45:00 -08:00
parent 1ccd0cd04d
commit 0f9666ae16
1 changed files with 1 additions and 1 deletions

View File

@ -24,6 +24,6 @@ case 1
case *
pattern=$1
shift
files=($*)
files=`$nl{walk -f $recurse -- $*}
}
grep -n $flags -- $pattern $files /dev/null