Skip to content

Comments

expr: fix regex matching on inputs containing newlines#10543

Merged
cakebaker merged 2 commits intouutils:mainfrom
ChrisDryden:fix-expr-regex-newline-matching
Jan 30, 2026
Merged

expr: fix regex matching on inputs containing newlines#10543
cakebaker merged 2 commits intouutils:mainfrom
ChrisDryden:fix-expr-regex-newline-matching

Conversation

@ChrisDryden
Copy link
Collaborator

I was investigating the onig flags to see what is missing with the multiline related options to achieve gnu compatibility and I found that there was a RegexOptions::REGEX_OPTION_MULTILINE and when testing adding it to all of the places where the regex options singleline was added it matched the missing multiline regexes that were previously failing

Fixes: #10542

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)

@sylvestre
Copy link
Contributor

the ci isn't happy

@ChrisDryden
Copy link
Collaborator Author

It's all flakiness :(

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/basenc/bounded-memory is now passing!

@cakebaker cakebaker merged commit e5bf248 into uutils:main Jan 30, 2026
214 of 216 checks passed
@cakebaker
Copy link
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.

expr regex matching differs from GNU coreutils on inputs containing newlines

3 participants