Skip to content

Conversation

mhucka
Copy link
Contributor

@mhucka mhucka commented Sep 1, 2025

The default version of grep on macOS (at least through macOS 15) does not take a -P argument, which causes check/pytest to fail due to the call to grep -P on line 432:

grep -Pv '^(.\[0m)?[\.FEsx]+(.\[36m)?\s+\[\s*\d+%\](.\[0m)?$'

The problem is that -P is for using Perl-compatible regular expressions (PCRE), which are not standard in the BSD version of grep that comes with macOS. Switching to grep's extended regex syntax using -E resolves the problem.

The default version of `grep` on macOS (at least through macOS 15) does
not take a `-P` argument, which causes `check/pytest` to fail due to the
call to `grep -P` on line 432:

```shell
grep -Pv '^(.\[0m)?[\.FEsx]+(.\[36m)?\s+\[\s*\d+%\](.\[0m)?$'
```

The problem is that `-P` is for using Perl-compatible regular
expressions (PCRE), which are not standard in the BSD version of grep
that comes with macOS. Switching to grep's extended regex syntax using
`-E` resolves the problem.
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.

1 participant