L.S.

After playing around with grep I found a bug when using the -P flag for
Perl regular expression.

See this minimal example:

[EMAIL PROTECTED]:~> echo "x" | grep -P "x[\s+]"
Segmentation fault

while

[EMAIL PROTECTED]:~> echo "x" | grep -E "x[\s+]"

does work (it return nothing as expected).

My version:
[EMAIL PROTECTED]:~> grep -V
grep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

My system:
[EMAIL PROTECTED]:~> uname -a
Linux Khazad-Dum 2.6.13-15.11-default #1 Mon Jul 17 09:43:01 UTC 2006
x86_64 x86_64 x86_64 GNU/Linux

Hope this information is useful, with kind regards,

Joppe Bos





Reply via email to