Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.5k
tail: show end of device#8037
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
GNU testsuite comparison:
|
3770c88
to1bab7ba
CompareGNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
Sorry, but you need to rebase again. I think after this rebase, you will no longer need to change the if statement that chooses between I am in full support of moving the And if anyone asks for a unit test: I'm not sure how you would test tailing a block device. This is currently a root-only test in the GNU coreutils. The GNU test finds a mounted block device and tails it, which is generally something that only root can do. |
gnu coreutils will show end of device for block devices.In current implementation this is skipped as a block devicesare recognized as untailable.The change ensures that we first try to output the end of anyfile and only then tell the observer that the file is notobservable.
Thank you for the updates. I rebased and can confirm: the if statement is not required anymore. |
GNU testsuite comparison:
|
facc7c5
to24a556b
CompareI tried to add a test, seefacc7c5. But the test is not very portable, e.g. on SELinux CI job, this happens:
I think a test is somehow pointless here. We would need to accept almost any failure as "ok". |
This PR is ready from my side. Please review. |
GNU testsuite comparison:
|
213389c
intouutils:mainUh oh!
There was an error while loading.Please reload this page.
Kudos and thanks! |
Uh oh!
There was an error while loading.Please reload this page.
gnu coreutils will show end of device for block devices. In current implementation this is skipped as a block devices are recognized as untailable.
The change ensures that we first try to output the end of any file and only then tell the observer that the file is not observable.
Gnu coreutils:
Before change:
After change: