Skip to content

Conversation

@naoNao89
Copy link
Contributor

@naoNao89 naoNao89 commented Nov 4, 2025

Fixes #9132. uu-nl now accepts repeated flags like GNU nl. Added args_override_self(true)to all 10 value-accepting arguments.

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

@naoNao89 naoNao89 force-pushed the fix/nl-repeated-flags-9132 branch from 5238335 to a2db784 Compare November 5, 2025 17:10
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@naoNao89 naoNao89 closed this by deleting the head repository Nov 6, 2025
@naoNao89 naoNao89 reopened this Nov 7, 2025
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@naoNao89 naoNao89 force-pushed the fix/nl-repeated-flags-9132 branch from a2db784 to 8f1bd52 Compare November 8, 2025 21:30
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 8, 2025

CodSpeed Performance Report

Merging #9140 will not alter performance

Comparing naoNao89:fix/nl-repeated-flags-9132 (aff651d) with main (7bcf58d)

Summary

✅ 123 untouched
⏩ 5 skipped1

Footnotes

  1. 5 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@github-actions
Copy link

github-actions bot commented Nov 8, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@naoNao89 naoNao89 force-pushed the fix/nl-repeated-flags-9132 branch from 8f1bd52 to 2d56770 Compare November 10, 2025 19:28
@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@naoNao89 naoNao89 force-pushed the fix/nl-repeated-flags-9132 branch from 2d56770 to a4819ba Compare November 11, 2025 12:59
@github-actions
Copy link

GNU testsuite comparison:

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test_repeated_footer_numbering_flag looks good now. Unfortunately, you have undone the previous changes to test_repeated_header_numbering_flag, test_repeated_join_blank_lines_flag, and test_repeated_section_delimiter_flag with the most recent push and the issues I mentioned yesterday are back :|

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💀

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests fixed and passing

Copy link
Contributor

@cakebaker cakebaker Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, now you have undone the changes to test_repeated_footer_numbering_flag :| The other changes look good.

@naoNao89 naoNao89 force-pushed the fix/nl-repeated-flags-9132 branch from a4819ba to 1ed8792 Compare November 11, 2025 17:44
• Enable args_override_self(true) for repeated flags
• Remove unnecessary ArgAction::Append calls
• Fix tests to verify last value wins, not just succeeds
• Update test output validation for repeated flags

Fixes uutils#9132
@naoNao89 naoNao89 force-pushed the fix/nl-repeated-flags-9132 branch from 1ed8792 to aff651d Compare November 11, 2025 17:47
@github-actions
Copy link

GNU testsuite comparison:

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

.args(&["-d", ":", "-d", "|"])
.pipe_in("|:|:|:\na\nb\nc")
.succeeds()
.stdout_is("\n a\n b\n c\n"); // header line not recognized with -d|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is incorrect. The piped in input is recognized as a header, otherwise |:|:|: would show up in the output.

Suggested change
.stdout_is("\n a\n b\n c\n"); // header line not recognized with -d|
.stdout_is("\n a\n b\n c\n");

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.

Bug: uu-nl rejects repeated -b* flags that GNU nl accepts

2 participants