Fixed option parsing. Grep would continue grepping, even when given a bad /
invalid option. Closes bug #1146.
This commit is contained in:
parent
e5dfced23a
commit
4391a16c92
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user