|
From: | Paul Eggert |
Subject: | bug#17799: grep 2.5.4 ignoring parts of expression |
Date: | Wed, 18 Jun 2014 08:32:18 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Jim Michaels wrote:
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
That's because your command asked to find the word 'random'. It's of the form:
grep random LIST-OF-FILE-NAMESThe first file name is "#include <(bits/)?random(\.h)?>", which grep complained to you about.
[Prev in Thread] | Current Thread | [Next in Thread] |