[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep
From: |
Eugene |
Subject: |
grep |
Date: |
Mon, 13 Feb 2006 12:09:54 +0300 |
User-agent: |
KMail/1.6.2 |
Hi there!
I installed grep-2.5.1-431.i586.rpm package on SuSE 9.1 platform and found
some strange behaviour:
bash-2.05b$ echo "_8_5" | egrep -q '^(_([0-9]|2[0-5])){2}$' && echo true ||
echo false
true
bash-2.05b$ echo "_8_6" | egrep -q '^(_([0-9]|2[0-5])){2}$' && echo true ||
echo false
false
bash-2.05b$ echo "_8_6" | egrep -q '^(_(2[0-5]|[0-9])){2}$' && echo true ||
echo false
true
bash-2.05b$ egrep --version
egrep (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.
It seems to me that the 2nd case is wrong.
The same behaviour I found on the RH9
bash-2.05b$ echo "_8_6" | egrep -q '^(_([0-9]|2[0-5])){2}$' && echo true ||
echo false
false
bash-2.05b$ egrep --version
egrep (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.
Eugene Bersenyov
Lead developer
Intelligent Systems <http://www.intelsysus.com/>
pgpeJzipk5FzH.pgp
Description: signature
- grep,
Eugene <=
- grep, MichaĆ Mazurek, 2006/02/23