-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
ripgrep doesn't stop when its pipe is closed #200
Copy link
Copy link
Closed
Labels
bugA bug.A bug.libripgrepAn issue related to modularizing ripgrep into libraries.An issue related to modularizing ripgrep into libraries.
Milestone
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugA bug.A bug.libripgrepAn issue related to modularizing ripgrep into libraries.An issue related to modularizing ripgrep into libraries.