Skip to content

nl: show error if --join-blank-lines is zero#5103

Merged
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:nl_join_blank_lines_show_error_if_zero
Jul 25, 2023
Merged

nl: show error if --join-blank-lines is zero#5103
sylvestre merged 1 commit intouutils:mainfrom
cakebaker:nl_join_blank_lines_show_error_if_zero

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
@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