Skip to content

cut: accept an output delimiter that starts with '-' - #15345

Merged
cakebaker merged 1 commit into
uutils:mainfrom
ozenyunus35:cut-output-delimiter-hyphen
Oct 14, 2026
Merged

cakebaker merged 1 commit into
uutils:mainfrom
ozenyunus35:cut-output-delimiter-hyphen

Conversation

@ozenyunus35

Copy link
Copy Markdown
Contributor

Closes #15341

--output-delimiter -x (and -O -x, --output-delimiter -1) failed with "unexpected argument '-x'", while GNU cut takes it as the delimiter. The = form already worked. Added allow_hyphen_values(true) to the OUTPUT_DELIMITER arg, like the other value-taking args in cut.

Added test_output_delimiter_starting_with_hyphen, which fails without the change.

I used an AI assistant to help draft parts of the code and tests; I reviewed the changes and ran the tests myself.

@cakebaker
cakebaker merged commit c1565db into uutils:main Oct 14, 2026
100 checks passed
@cakebaker

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.

cut: --output-delimiter rejects a value that starts with '-'

2 participants