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

--count with zero matches does not print "0" #1614

Closed
kpp opened this issue Jun 10, 2020 · 3 comments
Closed

--count with zero matches does not print "0" #1614

kpp opened this issue Jun 10, 2020 · 3 comments
Labels
duplicate An issue that is duplicative of another.

Comments

@kpp
Copy link
Contributor

kpp commented Jun 10, 2020

What version of ripgrep are you using?

rg --version
ripgrep 12.1.1
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)

How did you install ripgrep?

via cargo

What operating system are you using ripgrep on?

Ubuntu 18.04.4 LTS

Describe your bug.

$ rg 42 /dev/null --count
$ #empty output

vs

$ grep 42 /dev/null --count
0
$
@BurntSushi
Copy link
Owner

Duplicate of #1370.

@BurntSushi BurntSushi added the duplicate An issue that is duplicative of another. label Jun 10, 2020
@kpp
Copy link
Contributor Author

kpp commented Jun 10, 2020

I suggest you reopen the issue because the bug still exists since half a year the bugfix was merged.

@BurntSushi
Copy link
Owner

It's not a bug. See the message of the commit that closed it: a070722

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate An issue that is duplicative of another.
Projects
None yet
Development

No branches or pull requests

2 participants