Skip to content

Revert "tail: stop reading past the original end of file" - #15096

Merged
sylvestre merged 1 commit into
uutils:mainfrom
xtqqczze:GH15063
Oct 6, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
xtqqczze:GH15063

Conversation

@xtqqczze

@xtqqczze xtqqczze commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Revert to unblock CI from the failing test_output_appended_to_input_file_terminates test.

Closes #15100.
Reverts #15063.

Comment thread src/uu/tail/src/tail.rs
// Find the position in the file to start printing from.
match &settings.mode {
FilterMode::Lines(Signum::Negative(count), delimiter) => {
backwards_thru_file(file, *count, *delimiter);

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.

why the revert? without this, tail -n1 f >> f never stops and fills the disk again.
if the original broke something, could you please share the failing case and add a test for it?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it broke CI

@sylvestre
sylvestre merged commit 072331e into uutils:main Oct 6, 2026
96 checks passed
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.

test_tail::test_output_appended_to_input_file_terminates is failing in CI

2 participants