Skip to content

Conversation

@cakebaker
Copy link
Contributor

This PR allows 0 as value for --join-blank-lines to match the behavior of GNU nl:

$ printf "\n\n\n\n\n\n" | nl --join-blank-lines=0 --body-numbering=a
     1
     2
     3
     4
     5
     6

So far we failed with an "invalid number" error.

@github-actions
Copy link

github-actions bot commented Sep 1, 2025

GNU testsuite comparison:

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

@sylvestre sylvestre merged commit a81cf2b into uutils:main Sep 1, 2025
93 checks passed
@cakebaker cakebaker deleted the nl_join_blank_lines_allow_zero branch September 1, 2025 16:34
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