bsdgrep: treat rgrep as grep -r

Submitted by:	   Kyle Evans <kevans91@ksu.edu>
This commit is contained in:
Ed Maste 2017-04-03 21:10:02 +00:00
parent ab38e32db6
commit 491b8b1623

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;