-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Use [:space:] instead of \s #10508
Use [:space:] instead of \s #10508
Conversation
@filipnavara can you verify this works in your MSYS? $ printf "%03d%03d%03d" $(go version | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?[[:space:]]' | tr '.' ' ')
001013008 |
@silverwind Yes, works with both GNU grep 2.5.4 and 3.1 on my machine. |
|
Codecov Report
@@ Coverage Diff @@
## master #10508 +/- ##
==========================================
+ Coverage 43.67% 43.69% +0.01%
==========================================
Files 586 586
Lines 81418 81418
==========================================
+ Hits 35560 35572 +12
+ Misses 41446 41435 -11
+ Partials 4412 4411 -1
Continue to review full report at Codecov.
|
I'm running this
And I get:
Bona-fide CentOS /bin/bash GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu) |
@guillep2k: I see no issue there, |
Yeah, it's not a problem, really. Only that |
It should parse as |
@silverwind you're correct! as per my own comment: #10508 (comment) 😅 |
Although modern versions of GNU grep make
\s
a synonym for[:space:]
this is not POSIX compliant. We should use[:space:]
Fix #10507