diff options
author | Ori Bernstein <ori@eigenstate.org> | 2020-02-26 21:45:00 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2020-02-26 21:45:00 -0800 |
commit | 0f9666ae162f7c330850fa513e8ed3bd5fd995df (patch) | |
tree | c9c52d8e2ae1e707dcf3e673c6b2ae79363dfdea /rc | |
parent | 1ccd0cd04d75840861e26f6c5f6ac73396d43d8a (diff) | |
download | plan9front-0f9666ae162f7c330850fa513e8ed3bd5fd995df.tar.xz |
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.
Diffstat (limited to 'rc')
-rwxr-xr-x | rc/bin/g | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,6 +24,6 @@ case 1 case * pattern=$1 shift - files=($*) + files=`$nl{walk -f $recurse -- $*} } grep -n $flags -- $pattern $files /dev/null |