Skip to content

ripgrep doesn't stop when its pipe is closed #200

@BurntSushi

Description

@BurntSushi

For example, the following two rg commands take the same amount of time, but the second one should be much shorter:

[andrew@Cheetah subtitles] ls -lh OpenSubtitles2016.raw.en 
-rw-r--r-- 1 andrew users 9.3G Sep 10 11:51 OpenSubtitles2016.raw.en
[andrew@Cheetah subtitles] time rg 'Sherlock Holmes' OpenSubtitles2016.raw.en | wc -l
5107

real    0m1.602s
user    0m1.250s
sys     0m0.350s
[andrew@Cheetah subtitles] time rg 'Sherlock Holmes' OpenSubtitles2016.raw.en | head -n1
You read Sherlock Holmes to deduce that?

real    0m1.626s
user    0m1.247s
sys     0m0.377s

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug.libripgrepAn issue related to modularizing ripgrep into libraries.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions