slusek
February 26, 2020, 11:25pm
1
Page with documentation use buildsystem indicates a command to use if one wants to grep build errors:
make V=s 2>&1 | tee build.log | grep -i '[^-"a-z]error[^ -.a-z]'
When I try to run it, it says about invalid end of scope. Is that regexp correct?
Regards,
Wojtek
yousong
February 27, 2020, 2:19am
2
I also verified it myself. The regexp should be fine.
Maybe more exact scene description can help, e.g. screenshot or byte-by-byte dump
slusek
February 27, 2020, 7:02am
3
I am sorry for my mistake and pasting only part that actually worked. The grep regexp on the documentation page is:
make V=s 2>&1 | tee build.log | grep -i '[^_-"a-z]error[^_-.a-z]'
yousong
February 27, 2020, 9:33am
4
Still working on my system.
slusek
February 29, 2020, 10:35pm
5
Lucky you, any idea what can cause the problem?
I am working on current Ubuntu, tried with different locales (en_US.utf8 and pl_PL.utf8) without any success.
Regards,
Wojtek
Yes, depending on
grep --version
you may have to fixup the use of the range character.
fgrep should probably get the job done as is.
1 Like