The option "-n" have a side effect with the option "-P" and the regexp
'^\r$', the line numbers got overwritten by the carriage return char so
these don't appear on output.
cmd ex: grep -Pn '^\r$' file.txt
ps: I know I can see the numbers by redirecting output in a file.
hi
I got a segmentation fault when I try to match a very long pattern on a
file:
$ grep -Po 'jQuery\.extend\(Drupal\.settings,[
\t]*\{((?!\}\}\)).)+\}\}\);' /tmp/pattern-exemple.txt
Erreur de segmentation
the grep version : grep (GNU grep) 2.16
the gdb backtrace:
#0 0xb7f7d01a in ?? () fr
Le 11/01/2015 18:26, GNU bug Tracking System a écrit :
Your bug report
#19567: "segmentation fault" for long patterns ...
which was filed against the grep package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to