Skip to content

Conversation

cakebaker
Copy link
Contributor

So far when using | or & numbers were only interpreted as true if they were 1. This PR changes this behavior, now any number != 0 is interpreted as true.

Fixes #5315 and #5316

@sylvestre sylvestre merged commit f31c017 into uutils:main Sep 26, 2023
@sylvestre
Copy link
Contributor

excellent, thanks.
the fuzzer is running a bit longer :)

@cakebaker cakebaker deleted the expr_fix_and_and_or branch September 27, 2023 04:39
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.

"/usr/bin/expr 90 \| 67 = 10" has a different output & error code than GNU expr 50 & 40 is behaving differently than GNU
2 participants