shithub: riscv

Download patch

ref: 97008caa4174cee3dd849d9962c529897717e333
parent: d1dc287210afd73705c21675dcbaa4eaf997fdde
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Nov 21 16:23:46 EST 2020

g: filter directory arguments

When searching directories recursively, it's still
desirable to filter the contents by the file pattern,
so that 'g foo /sys/src' doesn't end up searching for
foo within .$O files.

Files passed explicitly are still searched, so for the
old behavior, just use walk:

	g foo `{walk -f $dir}