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

nl: show error if --number-width is zero #5065

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

cakebaker
Copy link
Contributor

GNU nl shows an "invalid line number field width" error if -w/--number-width is 0 whereas uutils nl doesn't fail. This PR fixes this issue.

src/uu/nl/src/helper.rs Outdated Show resolved Hide resolved
@sylvestre sylvestre merged commit a1b4d25 into uutils:main Jul 12, 2023
44 of 45 checks passed
@cakebaker cakebaker deleted the nl_number_width_zero branch July 12, 2023 07: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