Skip to content

feat(truncate): allow negative size values for truncation#9129

Merged
cakebaker merged 1 commit intouutils:mainfrom
mattsu2020:truncate_fix
Nov 3, 2025
Merged

feat(truncate): allow negative size values for truncation#9129
cakebaker merged 1 commit intouutils:mainfrom
mattsu2020:truncate_fix

Conversation

@mattsu2020
Copy link
Contributor

@mattsu2020 mattsu2020 commented Nov 3, 2025

- Enable hyphen values in size argument to support negative sizes (e.g., "-1")
- Add test case verifying truncation to empty file with negative size "-1"
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

GNU testsuite comparison:

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

@cakebaker cakebaker merged commit d2f6996 into uutils:main Nov 3, 2025
136 of 137 checks passed
@cakebaker
Copy link
Contributor

Thanks!

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.

truncate does not support negative sizes

2 participants