Skip to content

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

Merged
cakebaker merged 2 commits into
uutils: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 into
uutils:mainfrom
georgepaulsen:test-literal-ternary

Conversation

@georgepaulsen

@georgepaulsen georgepaulsen commented Dec 31, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Thanks for your PR!

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