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 --join-blank-lines is zero #5103

Merged

Conversation

cakebaker
Copy link
Contributor

GNU nl shows an "invalid line number of blank lines" error if -l/--join-blank-lines is 0 whereas uutils nl doesn't fail. This PR fixes this issue. Plus adds a test for when an invalid value is specified for -l/--join-blank-lines.

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/rm/rm2 is no longer failing!
Skipping an intermittent issue tests/tail-2/inotify-dir-recreate

@sylvestre sylvestre merged commit 9449eda into uutils:main Jul 25, 2023
44 of 45 checks passed
@cakebaker cakebaker deleted the nl_join_blank_lines_show_error_if_zero branch July 26, 2023 05:04
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