diff options
author | bapt <bapt@FreeBSD.org> | 2017-10-03 08:14:25 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2017-10-03 08:14:25 +0000 |
commit | e5f88890a0641bce34bdbee1cb26b62a9077fd60 (patch) | |
tree | bd4f6b1f015ad3d82dc565c771bc3d96fab76fe9 | |
parent | bca7b0826ce83fd88e3b669bb5e6d9d8fef09688 (diff) | |
download | FreeBSD-src-e5f88890a0641bce34bdbee1cb26b62a9077fd60.zip FreeBSD-src-e5f88890a0641bce34bdbee1cb26b62a9077fd60.tar.gz |
MFC r324100:
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
-rwxr-xr-x | usr.bin/man/man.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index ae928a1..a982ea8 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 |