-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
tail: Reactivate ---presume-input-pipe option #3959
tail: Reactivate ---presume-input-pipe option #3959
Conversation
Okay, seems like I was a bit quick on the merge last time, we should at least have the same features with each PR. Any other missing functionality from that PR? And is there a reason to keep this as a draft or is it ready (when the conflicts are fixed)? |
9ffdb9a
to
c32d61d
Compare
Sorry for that. No, |
@tertsdiepraam Not meant badly, but I don't think this option is crucial. I guess gnu tail has this hidden, undocumented option because there is a perfomance difference between
Maybe they used the option for testing purposes. However, we don't have this performance difference. Tailing this file with bounded_tail() or unbounded_tail() is comparable fast in our version of tail. |
Oh I agree that it's not very useful, but if we want to claim full compatibility, then this option should be included and should probably do what it implies. The testing argument could also apply to us. However, there are indeed also some of those triple dash arguments we silently ignore because they don't apply. |
Sure. No problem. I didn't want to stress :) Just for completeness and maybe it helps: When I readded the functionality, I was looking at the code of tail in gnu's coreutils and I'm very sure, that it's all about not using file seeks. It's a little bit buried, but I think it can be stripped down to: in case of |
That seems to match our previous investigations into this (see #2907 (comment)), so I think you're correct! |
@tertsdiepraam Are we ready here? |
Yeah, all good! |
During #3905, I missed to reactivate the ---presume-input-pipe option. This fix will reactivate it.