[Bug 223516] man(1) ignores the exit status of groff
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Nov 8 10:18:58 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223516
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 at FreeBSD.org
Reporter: wosch at 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’t, better
use status 2 or something similar.
$ man -M ~/man salt >/dev/null; echo $?
grotty:<standard input> (<standard input>):1266315: character above first line
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 stop'
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list