Skip to content

test: fixing unary operators that are getting parsed as argument instead of string literal#9951

Merged
cakebaker merged 2 commits intouutils:mainfrom
georgepaulsen:test-literal-ternary
Jan 1, 2026
Merged

test: fixing unary operators that are getting parsed as argument instead of string literal#9951
cakebaker merged 2 commits intouutils:mainfrom
georgepaulsen:test-literal-ternary

Conversation

@georgepaulsen
Copy link
Contributor

@georgepaulsen georgepaulsen commented Dec 31, 2025

Fixes #9950

Adds a peek when parsing a unary operator to make sure that the flags -f do not get treated as options when there is a string comparison. Added regressions tests.

@cakebaker cakebaker merged commit 88051cb into uutils:main Jan 1, 2026
127 of 128 checks passed
@cakebaker
Copy link
Contributor

Thanks for your PR!

sgmarz pushed a commit to sgmarz/coreutils that referenced this pull request Jan 7, 2026
…ead of string literal (uutils#9951)

* Check for three-string comparison in test

* Add regression tests for unary operator in three-arg form
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.

test: incorrectly parses unary operators when followed by a string comparison operator

2 participants