-
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.
grep: no match for empty pattern file (#821)
* 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
- Loading branch information
Showing
1 changed file
with
14 additions
and
5 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