Skip to content
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

fmt: fail if goal is bigger than default width #6096

Merged

Conversation

cakebaker
Copy link
Contributor

GNU fmt fails when using fmt --goal=76 example.txt because the provided goal value is bigger than 75, the default width. uutils fmt, on the other hand, doesn't fail.

This PR fixes this issue and also replaces two magic numbers with constants.

Copy link

GNU testsuite comparison:

GNU test failed: tests/timeout/timeout. tests/timeout/timeout is passing on 'main'. Maybe you have to rebase?

@sylvestre sylvestre merged commit a3ff7b7 into uutils:main Mar 20, 2024
61 of 62 checks passed
@cakebaker cakebaker deleted the fmt_fail_if_goal_bigger_than_default_width branch March 20, 2024 10:19
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.

2 participants