Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "warning: regexp escape sequence `\"' is not a known regexp operator" #471

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

y-yagi
Copy link

@y-yagi y-yagi commented Dec 18, 2024

Since v5.0.0, awk doesn't treat \" as a regexp operator. So the current implementation causes the following warning when using awk >= v5.0.0.

awk: cmd. line:1: warning: regexp escape sequence `\"' is not a known regexp operator

This PR replaces \" to " to fix the warning.

Ref: KittyKatt/screenFetch#627

…tor"

Since v5.0.0, awk doesn't treat ``\"` as a regexp operator.
So the current implementation causes the following warning when
using awk >= v5.0.0.

```
awk: cmd. line:1: warning: regexp escape sequence `\"' is not a known regexp operator
```

This PR replaces `\"` to `"` to fix the warning.

Ref: KittyKatt/screenFetch#627
@marboledacci
Copy link
Contributor

What environments have you seen this warning on?

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.

2 participants