help / color / mirror / Atom feed
Subject: mandoc: In the first example, use "mandoc -a" directly rather "mandoc
Date: Tue, 8 Feb 2022 13:30:52 -0500 (EST)	[thread overview]
Message-ID: <> (raw)

Log Message:
In the first example, use "mandoc -a" directly rather "mandoc -l".

It feels more natural to me to use -a directly when asking mandoc(1)
to use a pager.  The reason that "mandoc -l" does exactly the same
as "mandoc -a" is that "mandoc" is essentially "man -lc", so the -a
implied by -l negates the -c and the -l has no effect because it is
already the default for mandoc(1).

The more usual command for doing the same is "man -l foo.1 bar.1 ..."
but that's off-topic for the mandoc(1) manual page.

Patch on tech@ from Anders Damsgaard <anders at adamsgaard dot dk>.

Modified Files:

Revision Data
Index: mandoc.1
RCS file: /home/cvs/mandoc/mandoc/mandoc.1,v
retrieving revision 1.254
retrieving revision 1.255
diff -Lmandoc.1 -Lmandoc.1 -u -p -r1.254 -r1.255
--- mandoc.1
+++ mandoc.1
@@ -735,7 +735,7 @@ output mode implies
 To page manuals to the terminal:
-.Dl $ mandoc -l mandoc.1 man.1 apropos.1 makewhatis.8
+.Dl $ mandoc -a mandoc.1 man.1 apropos.1 makewhatis.8
 To produce HTML manuals with
 .Pa /usr/share/misc/mandoc.css
 To unsubscribe send an email to

                 reply	other threads:[~2022-02-08 18:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: mandoc: In the first example, use "mandoc -a" directly rather "mandoc' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).