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
Request for command line flag to control line buffering #555
Comments
I think you mean you want to disable line buffering, right? |
Does it already do line buffering by default? Edit: Wow, looks like it does! Okay! Yes, then someone may want non-line-buffering as a feature. For performance. Or something. Hey Ack is supposed to be faster than grep, somehow, right? Sorry about not properly testing. I thought i tested it right, but I didn't. |
I'm confused when you say "I'd like an immediate response, which requires line buffering". "immediate response" would require a given program to not have any line buffering. An immediate response would mean that there is no buffer in the program for holding output. |
Yes you are right, I edited a few things. Does it clarify? I'm 100% satisfied now because turns out ack already by default does not do buffering. Which is what I wanted to begin with. Feel free to close, i'm leaving it because it could be a cool enhancement to add configurability w.r.t. buffering (but like i said I don't care much at this point). What i meant by |
ack is written in Perl, and Perl by default does have output buffering on. We do have the
How did you conclude that ack does not do buffering by default? |
I see. I concluded as I did because the behavior between Since you just showed me the flag, this answers the question. Thanks. |
Similar to BSD Grep's
--line-buffering
flag.For example I want to use
ack
to do a regex (which needs ack because regex has lookbehind) in a pipe withfswatch
, the events trigger single lines of input over the pipe, so I'd like an immediate response, which buffers only lines.The text was updated successfully, but these errors were encountered: