discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdoc section ordering
@ 2010-05-11 11:52 Ulrich Spörlein
  2010-05-11 13:45 ` Jason McIntyre
  0 siblings, 1 reply; 10+ messages in thread
From: Ulrich Spörlein @ 2010-05-11 11:52 UTC (permalink / raw)
  To: discuss

Hi,

right now the lint option of mandoc will complain mildly, if the section
order of manpages is not in a certain order. This is good.

However, while working on the FreeBSD mdoc corpus, I found that FreeBSD
and mdocml diverge on where they think the EXIT STATUS section should be
placed.

FreeBSD:                                mdocml:

.Dd Month day, year                     .Dd $Mdocdate$
.Os [OPERATING_SYSTEM]                  .Dt mdoc 7
.Dt DOCUMENT_TITLE                      .Os

.Sh NAME                                .Sh NAME
.Nm name                                .Nm foo
.Nd one line description of name        .Nd a description goes here
.Sh LIBRARY                             .Sh LIBRARY
.Sh SYNOPSIS                            .Sh SYNOPSIS
.Sh DESCRIPTION                         .Sh DESCRIPTION
.Sh IMPLEMENTATION NOTES                .Sh IMPLEMENTATION NOTES

.Sh RETURN VALUES                       .Sh EXIT STATUS
.Sh ENVIRONMENT                         .Sh RETURN VALUES
.Sh FILES                               .Sh ENVIRONMENT
.Sh EXIT STATUS                         .Sh FILES
.Sh EXAMPLES                            .Sh EXAMPLES

.Sh DIAGNOSTICS                         .Sh DIAGNOSTICS
.Sh COMPATIBILITY
.Sh ERRORS                              .Sh ERRORS
.Sh SEE ALSO                            .Sh SEE ALSO
.Sh STANDARDS                           .Sh STANDARDS
.Sh HISTORY                             .Sh HISTORY
.Sh AUTHORS                             .Sh AUTHORS
                                        .Sh CAVEATS
.Sh BUGS                                .Sh BUGS
                                        .Sh SECURITY CONSIDERATIONS

It is desirable that we not diverge in this regard and Ruslan's initial
motive for putting EXIT STATUS after FILES in FreeBSD has to do with how
POSIX is structuring their manpages.

So I'd like to get some consensus on where we should put EXIT STATUS and
I'd also like a vote on if COMPATIBILITY should be included as a
standard section enforced by mdocml.

Please discuss!
Uli
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-05-13 18:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-11 11:52 mdoc section ordering Ulrich Spörlein
2010-05-11 13:45 ` Jason McIntyre
2010-05-11 14:57   ` Ulrich Spörlein
2010-05-11 15:43     ` Jason McIntyre
2010-05-11 16:23       ` Ulrich Spörlein
2010-05-11 20:09         ` Kristaps Dzonsons
2010-05-11 20:27           ` Ulrich Spörlein
2010-05-11 20:59           ` Jason McIntyre
2010-05-12 12:50             ` Kristaps Dzonsons
2010-05-13 22:23           ` Thomas Klausner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).