Skip to content

pr: avoid parsing numeric filename suffixes as operands#13353

Merged
sylvestre merged 2 commits into
uutils:mainfrom
TheAdamWarlock:fix-pr-filename-with-dash-num
Jul 11, 2026
Merged

pr: avoid parsing numeric filename suffixes as operands#13353
sylvestre merged 2 commits into
uutils:mainfrom
TheAdamWarlock:fix-pr-filename-with-dash-num

Conversation

@TheAdamWarlock

Copy link
Copy Markdown
Contributor

Fixes #12999.

This PR ensures that legacy -COLUMN and +FIRST[:LAST] operands are recognized only as complete arguments before --. As a result, filenames such as a-0 and a-b-0 are no longer misinterpreted as options. Regression tests have been added for the affected cases.

TheAdamWarlock and others added 2 commits July 10, 2026 22:54
Parse legacy -COLUMN and +FIRST[:LAST] forms only as complete
arguments before the -- terminator. Preserve option-like filenames
after -- and add regression coverage for the affected cases.

Fixes uutils#12999
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/cut/bounded-memory (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/date/resolution (fails in this run but passes in the 'main' branch)
Note: The gnu test tests/printf/printf-surprise is now being skipped but was previously passing.
Note: The gnu test tests/rm/many-dir-entries-vs-OOM is now being skipped but was previously passing.
Note: The gnu test tests/env/env-signal-handler was skipped on 'main' but is now failing.

@sylvestre sylvestre merged commit 4daff8f into uutils:main Jul 11, 2026
177 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

Thanks

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(pr): files that endswith -0 misinterpreted in parsing

2 participants