From: Kristaps Dzonsons <kristaps@bsd.lv>
To: tech@mdocml.bsd.lv
Subject: Respect MACHINE.
Date: Wed, 14 Dec 2011 11:44:31 +0100 [thread overview]
Message-ID: <4EE87E0F.3010008@bsd.lv> (raw)
[-- Attachment #1: Type: text/plain, Size: 246 bytes --]
Hi,
The enclosed small patch respects the MACHINE variable as stipulated in
man(1). This isn't mentioned in apropos(1) or whatis(1), but it makes
sense to be consistent with man(1)'s environment (MANPATH, etc.). Thoughts?
Thanks,
Kristaps
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1547 bytes --]
Index: apropos.1
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/apropos.1,v
retrieving revision 1.13
diff -u -r1.13 apropos.1
--- apropos.1 12 Dec 2011 02:00:49 -0000 1.13
+++ apropos.1 14 Dec 2011 10:38:06 -0000
@@ -238,6 +238,10 @@
.El
.Sh ENVIRONMENT
.Bl -tag -width Ds
+.It Ev MACHINE
+Case-insensitive architecture.
+Overriden by
+.Fl S .
.It Ev MANPATH
Colon-separated paths overriding the default list of paths searched for
manual databases.
Index: apropos.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/apropos.c,v
retrieving revision 1.24
diff -u -r1.24 apropos.c
--- apropos.c 12 Dec 2011 02:00:49 -0000 1.24
+++ apropos.c 14 Dec 2011 10:38:06 -0000
@@ -62,6 +62,7 @@
auxpaths = defpaths = NULL;
conf_file = NULL;
e = NULL;
+ opts.arch = getenv("MACHINE");
while (-1 != (ch = getopt(argc, argv, "C:M:m:S:s:")))
switch (ch) {
Index: whatis.1
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/whatis.1,v
retrieving revision 1.4
diff -u -r1.4 whatis.1
--- whatis.1 12 Dec 2011 02:00:49 -0000 1.4
+++ whatis.1 14 Dec 2011 10:38:06 -0000
@@ -110,6 +110,10 @@
.Dl $ apropos -- -i 'Nm~[[:<:]]term[[:>:]]'
.Sh ENVIRONMENT
.Bl -tag -width Ds
+.It Ev MACHINE
+Case-insensitive architecture.
+Overriden by
+.Fl S .
.It Ev MANPATH
Colon-separated paths overriding the default list of paths searched for
manual databases.
next reply other threads:[~2011-12-14 10:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 10:44 Kristaps Dzonsons [this message]
2011-12-14 11:36 ` Ingo Schwarze
2011-12-14 13:08 ` Kristaps Dzonsons
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EE87E0F.3010008@bsd.lv \
--to=kristaps@bsd.lv \
--cc=tech@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).