From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-1.sys.kth.se (smtp-1.sys.kth.se [130.237.32.175]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o6RDvCRn007550 for ; Tue, 27 Jul 2010 09:57:12 -0400 (EDT) Received: from smtp-1.sys.kth.se (localhost [127.0.0.1]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 8E589156F29; Tue, 27 Jul 2010 15:57:06 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-1.sys.kth.se ([127.0.0.1]) by smtp-1.sys.kth.se (smtp-1.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rBe4blzGDugA; Tue, 27 Jul 2010 15:57:05 +0200 (CEST) X-KTH-Auth: kristaps [130.237.221.96] X-KTH-mail-from: kristaps@bsd.lv Received: from [130.237.221.96] (ctime.pdc.kth.se [130.237.221.96]) by smtp-1.sys.kth.se (Postfix) with ESMTP id E2A141563C2; Tue, 27 Jul 2010 15:57:04 +0200 (CEST) Message-ID: <4C4EE52F.9020601@bsd.lv> Date: Tue, 27 Jul 2010 15:54:55 +0200 From: Kristaps Dzonsons User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: "ru@freebsd.org" CC: discuss@mdocml.bsd.lv Subject: Re: mdoc EXIT STATUS (Was: pending open issues) References: <4C4E0F7B.4030009@bsd.lv> <20100727071224.GB7946@bramka.kerhand.co.uk> <4C4E996B.5080908@bsd.lv> <20100727092007.GA21455@bramka.kerhand.co.uk> <4C4EA7A0.1040104@bsd.lv> <20100727094102.GC21455@bramka.kerhand.co.uk> <4C4EAEE9.9000106@bsd.lv> <20100727101815.GD21455@bramka.kerhand.co.uk> <4C4EC13B.1000906@bsd.lv> <20100727131709.GA16499@edoofus.dev.vega.ru> In-Reply-To: <20100727131709.GA16499@edoofus.dev.vega.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit >> There's a discussion on mandoc's discuss@ list about the EXIT STATUS >> situation across the BSDs. We're trying to unify the documentation in >> mandoc's mdoc.7 page (enclosed). >> >> Basically, everybody seems to have a different convention of where to >> put `Ex'. Can you weigh in on FreeBSD's stance? > > Traditionally BSD used DIAGNOSTICS for both exit statuses and diagnostic > messages. Then POSIX took BSD manpages to form their document base. > They invented EXIT STATUS. In 2000, I participated in mdoc(7) macro > package rewrite in Groff, including massive updates of FreeBSD manpages. > As part of this work, FreeBSD received permission from Austin Group to > use POSIX texts in their manpages. I've then "introduced" EXIT STATUS > to FreeBSD manpages, in 2005, splitting the existing DIAGNOSTICS section > into two: EXIT STATUS for documenting program's exit statuses, and > DIAGNOSTICS for program/driver diagnostic messages. The current > manpage skeletons are there: > > http://svn.freebsd.org/viewvc/base/head/share/misc/mdoc.template > http://svn.freebsd.org/viewvc/base/head/share/examples/mdoc/ > > Note: We didn't modify the mdoc(7) manpage, it comes verbatim (without > FreeBSD local changes) as found in the Groff distribution. > >> Jason McIntyre wrote: >>> On Tue, Jul 27, 2010 at 12:03:21PM +0200, Kristaps Dzonsons wrote: >>>> So, from what I gather >>>> >>>> (1) Net uses EXIT STATUS >>>> (2) DragonFly/Free uses DIAGNOSTICS >>>> (3) Open uses DESCRIPTION >>>> (4) GNU/Linux uses chaos >>>> >>>> Is that correct? >>> no. i can't speak for dragonfly, but netbsd and freebsd both use EXIT >>> VALUES and DIAGNOSTICS. however i cannot find anywhere in their >>> documentation that says EXIT STATUS is valid (mdoc.template perhaps >>> being an exception, but that is not documentation). >>> >>> from what sacha said earlier, it sounds like dragonfly do this too. >>> >>> openbsd use DIAGNOSTICS, but not EXIT STATUS. >>> >>> i am deliberating whether it's worth reinstating EXIT STATUS, but i >>> can;t get anyone authorative from these projects to say what "official >>> policy" is. at least: >>> >>> net: wiz? joerg? >>> free: i have no real contact with freebsd people. i don;t know >>> who to ask. >>> dragon: sacha, who is at least replying to this thread ;) >>> >>> it would be nice if between us we could agree on sth sane. Ruslan, thanks! So we have Free and DragonFly using EXIT STATUS (which is not documented in mdoc.7 on either system). >From what I see of their manuals, NetBSD does the same, but let's wait for an official word from wiz@ and/or joerg@. Kristaps -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv