add gnu grep -q flag (rob pike)
This commit is contained in:
parent
3270dcf06c
commit
29cfa38567
1 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#define EXTERN
|
#define EXTERN
|
||||||
#include "grep.h"
|
#include "grep.h"
|
||||||
|
|
||||||
char *validflags = "bchiLlnsv";
|
char *validflags = "bchiLlnsqv";
|
||||||
void
|
void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
|
|
@ -21,6 +21,10 @@ main(int argc, char *argv[])
|
||||||
flags[ARGC()]++;
|
flags[ARGC()]++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'q': /* gnu grep -q means plan 9 grep -s */
|
||||||
|
flags['s']++;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'E': /* ignore, turns gnu grep into egrep */
|
case 'E': /* ignore, turns gnu grep into egrep */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue