diff options
-rw-r--r-- | src/cmd/grep/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd/grep/main.c b/src/cmd/grep/main.c index f5ab7ff4..3a21a3a6 100644 --- a/src/cmd/grep/main.c +++ b/src/cmd/grep/main.c @@ -1,7 +1,7 @@ #define EXTERN #include "grep.h" -char *validflags = "bchiLlnsv"; +char *validflags = "bchiLlnsqv"; void usage(void) { @@ -21,6 +21,10 @@ main(int argc, char *argv[]) flags[ARGC()]++; break; + case 'q': /* gnu grep -q means plan 9 grep -s */ + flags['s']++; + break; + case 'E': /* ignore, turns gnu grep into egrep */ break; |