bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in grep -P


From: Joppe Bos
Subject: Bug in grep -P
Date: Tue, 03 Oct 2006 12:46:15 +0200

L.S.

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

See this minimal example:

address@hidden:~> echo "x" | grep -P "x[\s+]"
Segmentation fault

while

address@hidden:~> echo "x" | grep -E "x[\s+]"

does work (it return nothing as expected).

My version:
address@hidden:~> 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:
address@hidden:~> 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

[Prev in Thread] Current Thread [Next in Thread]