bsdgrep: treat rgrep as grep -r

Submitted by:	   Kyle Evans <kevans91@ksu.edu>
This commit is contained in:
emaste 2017-04-03 21:10:02 +00:00
parent a7e11b6f09
commit 631cc497f4

View File

@ -360,6 +360,9 @@ main(int argc, char *argv[])
} else if (pn[0] == 'l' && pn[1] == 'z') {
filebehave = FILE_LZMA;
pn += 2;
} else if (pn[0] == 'r') {
dirbehave = DIR_RECURSE;
Hflag = true;
} else if (pn[0] == 'z') {
filebehave = FILE_GZIP;
pn += 1;