git: 9front

Download patch

ref: 922fc6faa00ab4e0f46b9f3d3c6bbd25a1c2201d
parent: fb8543ab0c86a6ec39a91cb0436f9319ff34f7cf
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Feb 26 16:45:00 EST 2020

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.

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