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

Should stop when output pipe is closed #409

Closed
glandium opened this issue Mar 15, 2017 · 1 comment
Closed

Should stop when output pipe is closed #409

glandium opened this issue Mar 15, 2017 · 1 comment
Labels
duplicate An issue that is duplicative of another.

Comments

@glandium
Copy link

I was doing something like:

$ ssh host cat verylargearchive.zst | zstd -d | rg pattern | head

to check that my pattern made sense before running on the full thing. And that hang for a while, and I assume it would have waited for the whole thing to have been read.

Replace rg with grep and the program stops as soon as head closes its input pipe.

@BurntSushi
Copy link
Owner

Yes, this is a known bug. Dupe of #200.

@BurntSushi BurntSushi added the duplicate An issue that is duplicative of another. label Mar 15, 2017
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