-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* If -e and -f are not provided, the first argument to grep is a pattern * If -e or -f is provided, the first argument to grep is a file * Allow multiple -e and -f options to translate to multiple elements in the patterns-list * This patch follows how GNU and BSD versions behave * Bump version * test1: "perl grep -e include -e return a.c" --> 2 patterns, one file argument * test2: "echo include > P1 && echo return > P2 && perl grep -f P1 -f P2 a.c" --> 2 pattern files with one pattern each; one file argument * test3: "grep return a.c" --> one (default) pattern argument,one file argument
- Loading branch information
Showing
1 changed file
with
38 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters