-
-
Notifications
You must be signed in to change notification settings - Fork 1.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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
tail: show end of device #8037
Conversation
GNU testsuite comparison:
|
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 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 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.