Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grep: allow repeated -e and -f #757

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Commits on Oct 7, 2024

  1. grep: allow repeated -e and -f

    * 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
    mknos authored Oct 7, 2024
    Configuration menu
    Copy the full SHA
    7208d5a View commit details
    Browse the repository at this point in the history