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.
This commit is contained in:
parent
1ccd0cd04d
commit
0f9666ae16
1 changed files with 1 additions and 1 deletions
2
rc/bin/g
2
rc/bin/g
|
@ -24,6 +24,6 @@ case 1
|
|||
case *
|
||||
pattern=$1
|
||||
shift
|
||||
files=($*)
|
||||
files=`$nl{walk -f $recurse -- $*}
|
||||
}
|
||||
grep -n $flags -- $pattern $files /dev/null
|
||||
|
|
Loading…
Reference in a new issue