[Bug 297638] ldd reports signal 13 when in pipeline

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 20 Aug 2026 14:46:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297638

Benjamin Jacobs <freebsd@dev.thsi.be> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |freebsd@dev.thsi.be

--- Comment #2 from Benjamin Jacobs <freebsd@dev.thsi.be> ---
(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.