From 451c2bec47d1be2658a5e9fc9fcac889e195ccc4 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 29 Sep 2017 07:44:48 +0000 Subject: [PATCH] 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 --- usr.bin/man/man.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index f92dea9db84..7d021d78f26 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -333,7 +333,7 @@ man_display_page() { if [ -n "$use_width" ]; then mandoc_args="-O width=${use_width}" fi - testline="mandoc -Tlint -Wunsupp 2>/dev/null" + testline="mandoc -Tlint -Wunsupp >/dev/null 2>&1" if [ -n "$tflag" ]; then pipeline="mandoc -Tps $mandoc_args" else