Skip to content

tail: fix behaviour of tail -n0 in follow mode#9114

Merged
sylvestre merged 3 commits into
uutils:mainfrom
AnandajithS:fix_tail
Jan 18, 2026
Merged

tail: fix behaviour of tail -n0 in follow mode#9114
sylvestre merged 3 commits into
uutils:mainfrom
AnandajithS:fix_tail

Conversation

@AnandajithS

Copy link
Copy Markdown
Contributor

Fixed incorrect handling of tail -n0 -f in the bounded execution path.

Also added logic to handle the case where the file size is less than blksize_limit, which causes it to follow the unbounded execution path

Fixes #9102

@sylvestre

Copy link
Copy Markdown
Contributor

Could you please add a test to make sure we don't regress in the future? Thanks

@github-actions

github-actions Bot commented Nov 2, 2025

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

@github-actions

github-actions Bot commented Nov 3, 2025

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@github-actions

github-actions Bot commented Nov 6, 2025

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@github-actions

github-actions Bot commented Nov 6, 2025

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@sylvestre sylvestre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the unrelated changes

@codspeed-hq

codspeed-hq Bot commented Nov 10, 2025

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #9114 will not alter performance

Comparing AnandajithS:fix_tail (9ce8ebb) with main (2d718f2)

Summary

✅ 127 untouched
⏩ 6 skipped1

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@AnandajithS

Copy link
Copy Markdown
Contributor Author

@sylvestre It should be fixed now

@sylvestre
sylvestre merged commit 7654075 into uutils:main Jan 18, 2026
128 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

sorry for the latency

@xtqqczze

xtqqczze commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

some CI runs for this PR are still queued!

https://github.com/uutils/coreutils/actions/runs/19142997114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tail -n 0 is not respected when -f is used

3 participants