diff options
| -rw-r--r-- | grep.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -48,6 +48,7 @@ static int grep_inverse = 0; static int grep_silent = 0; static int grep_exact = 0; +/* TODO: handle -x */ static int grep_match_re(struct grep_list *head, const char *buf) { for (struct grep_list *c = head; c != NULL; c = c->next) { @@ -111,6 +112,8 @@ static uintmax_t grep(struct grep_list *head, const char *path) } return 2; } + } else { + path = "(standard input)"; } uintmax_t found = 0; |
