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: no match for empty pattern file #821

Merged
merged 1 commit into from
Nov 19, 2024

Commits on Nov 18, 2024

  1. grep: no match for empty pattern file

    * Testing against old commit 504caa9, "grep -f empty" was handled by exit(1), i.e. no match
    * A recent commit introduced a bug where ARGV would be shifted incorrectly if an empty file was passed as argument to -f
    * Follow GNU grep and bypass the search in this case because we know there cannot be any matches
    
    %touch empty && perl grep -f empty ar
    %echo $?
    1
    mknos authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    c860b17 View commit details
    Browse the repository at this point in the history