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

ripgrep never terminates when passing -q or --quiet flags #279

Closed
lilianmoraru opened this issue Dec 12, 2016 · 1 comment
Closed

ripgrep never terminates when passing -q or --quiet flags #279

lilianmoraru opened this issue Dec 12, 2016 · 1 comment

Comments

@lilianmoraru
Copy link
Contributor

rustc 1.15.0-nightly (daf8c1dfc 2016-12-05)
ripgrep 0.3.2

ripgrep never terminates when passing -q or --quiet flags.
Here is an example run(I added --debug later):

rg --debug --quiet "GCC"
DEBUG:grep::search: regex ast:
Literal {
    chars: [
        'G',
        'C',
        'C'
    ],
    casei: false
}
DEBUG:grep::literals: literal prefixes detected: Literals { lits: [Complete(GCC)], limit_size: 250, limit_class: 10 }
@BurntSushi
Copy link
Owner

Wow. Can't believe this one slipped through. This required there to be at least one match. There were tests for -q, but none of them involved finding matches. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants