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
\sa synonym for[:space:]this is not POSIX compliant. We should use[:space:]Fix #10507