bug-grep
[Top][All Lists]
Advanced

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

bug#17799: grep 2.5.4 ignoring parts of expression


From: Jim Michaels
Subject: bug#17799: grep 2.5.4 ignoring parts of expression
Date: Wed, 18 Jun 2014 01:53:16 -0700

grep random "#include <(bits/)?random(\.h)?>" *
expected: on the include/c++/bits dir of a gcc compiler should produce a couple 
of results. 

actual: produces pages and pages with just about every file in it. anything 
with the word random in it. grep is ignoring #include <(bits/)? and (\.h)?> and 
I have no clue why.

all I wanted was the header files in the compiler which #included anything 
related to random.h because I had a bug in gcc I was trying to report, so I 
ended up finding a bug in grep too.


 
-------------
Jim Michaels
address@hidden
address@hidden
http://RenewalComputerServices.com
http://JesusnJim.com (my personal site, has software)
---
IEC Units: Computer RAM & SSD measurements, microsoft disk size measurements 
(note: they will say GB or MB or KB or TB when it is IEC Units!):
[KiB] [MiB] [GiB] [TiB]
[2^10B=1,024^1B=1KiB]
[2^20B=1,024^2B=1,048,576B=1MiB]
[2^30B=1,024^3B=1,073,741,824B=1GiB]
[2^40B=1,024^4B=1,099,511,627,776B=1TiB]
[2^50B=1,024^5B=1,125,899,906,842,624B=1PiB]
SI Units: Hard disk industry disk size measurements:

[kB] [MB] [GB] [TB]
[10^3B=1,000B=1kB]
[10^6B=1,000,000B=1MB]
[10^9B=1,000,000,000B=1GB]
[10^12B=1,000,000,000,000B=1TB]
[10^15B=1,000,000,000,000,000B=1PB]


reply via email to

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