man(1): silent the output of mandoc when testing
This reduce the spam a user may face when mandoc tries to figure out if it can renders a manpage or fallback on groff(1) Reported by: bdrewery MFC after: 3 days
This commit is contained in:
parent
b974bc3b71
commit
d21eead6ff
@ -333,7 +333,7 @@ man_display_page() {
|
|||||||
if [ -n "$use_width" ]; then
|
if [ -n "$use_width" ]; then
|
||||||
mandoc_args="-O width=${use_width}"
|
mandoc_args="-O width=${use_width}"
|
||||||
fi
|
fi
|
||||||
testline="mandoc -Tlint -Wunsupp 2>/dev/null"
|
testline="mandoc -Tlint -Wunsupp >/dev/null 2>&1"
|
||||||
if [ -n "$tflag" ]; then
|
if [ -n "$tflag" ]; then
|
||||||
pipeline="mandoc -Tps $mandoc_args"
|
pipeline="mandoc -Tps $mandoc_args"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user