https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297638

Benjamin Jacobs <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Benjamin Jacobs <[email protected]> ---
(In reply to Markus Wild from comment #1)
It looks like this is the expected behaviour. See the manual page for the -q
flag: "grep will only search a file until a match has been found".

> I can work around the problem by using a temp file instead of a pipe, but I 
> don't think this is intended behavior...

You can also do `ldd /lib/path 2>/dev/null | fgrep -q patt` or `ldd /lib/path |
fgrep patt > /dev/null`, the later being probably preferred.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to