Date: Wed, 08 Nov 2017 10:18:58 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 223516] man(1) ignores the exit status of groff Message-ID: <bug-223516-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223516 Bug ID: 223516 Summary: man(1) ignores the exit status of groff Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: wosch@FreeBSD.org I tried to read the manpage of salt(7). troff crashes with signal 6, leaves= a core file. But the man(1) command report an exit status 0. It shouldn=E2=80= =99t, better use status 2 or something similar. $ man -M ~/man salt >/dev/null; echo $? grotty:<standard input> (<standard input>):1266315: character above first l= ine discarded troff: Failed assertion at line 510, file `/usr/src/gnu/usr.bin/groff/src/roff/troff/../../../../../../contrib/groff/= src/roff/troff/input.cpp'. grotty:<standard input> (<standard input>):1994486:warning: no final `x sto= p' command groff: troff: Signal 6 (core dumped) 0 groff(1) correctly reports an error and an exit status 2: $ zcat ~/man/man7/salt.7.gz | groff >/dev/null 2>&1; echo $? 2 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223516-8>