While writing a script to check that sendmail was compiled with SASL I ran into this:
Workaround was to redirect STDERR:
Command completes successfully if the -q option to grep is not used.
Same behaviour on 14.5-RELEASE and 15.1-RELEASE (both GENERIC amd64)
# ldd /usr/libexec/sendmail/sendmail | grep -q libsasl2.so
/usr/libexec/sendmail/sendmail: signal 13
Workaround was to redirect STDERR:
# ldd /usr/libexec/sendmail/sendmail 2>&1 | grep -q libsasl2.soCommand completes successfully if the -q option to grep is not used.
Same behaviour on 14.5-RELEASE and 15.1-RELEASE (both GENERIC amd64)