diff options
author | Mark Whitley <markw@lineo.com> | 2001-04-10 03:00:07 +0400 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2001-04-10 03:00:07 +0400 |
commit | 4391a16c92cef744fc715cb7347b7b71fc8f312e (patch) | |
tree | b5d0ca9bb0b258199e9b22e24355cf398bf6b7be /grep.c | |
parent | e5dfced23a904d08afa5dcee190c3c3d845d9f50 (diff) |
Fixed option parsing. Grep would continue grepping, even when given a bad /
invalid option. Closes bug #1146.
Diffstat (limited to 'grep.c')
-rw-r--r-- | grep.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -232,6 +232,8 @@ extern int grep_main(int argc, char **argv) before_buf = (char **)calloc(lines_before, sizeof(char *)); break; #endif /* BB_FEATURE_GREP_CONTEXT */ + default: + show_usage(); } } |