-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
bugA bug.A bug.questionAn issue that is lacking clarity on one or more points.An issue that is lacking clarity on one or more points.rollupA PR that has been merged with many others in a rollup.A PR that has been merged with many others in a rollup.
Description
What version of ripgrep are you using?
ripgrep 11.0.1
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)
How did you install ripgrep?
Compiled from repo.
What operating system are you using ripgrep on?
CentOS 7.
Describe your question, feature request, or bug.
ripgrep's behaviour seems inconsistent with grep's when using an empty file with --file and inverting match with -v.
$ echo text > /tmp/file; touch /tmp/empty_patterns; grep --file /tmp/empty_patterns -v /tmp/file; echo $?; rg --debug --file /tmp/empty_patterns -v /tmp/file; echo $?
text
0
1
Not 100% sure if it's a bug or a feature.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugA bug.A bug.questionAn issue that is lacking clarity on one or more points.An issue that is lacking clarity on one or more points.rollupA PR that has been merged with many others in a rollup.A PR that has been merged with many others in a rollup.