From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id c1a6d8bd; for ; Fri, 3 Apr 2015 03:46:48 -0500 (EST) Date: Fri, 3 Apr 2015 03:46:48 -0500 (EST) Message-Id: <2055465140629987323.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: No need to hardcode /usr/bin/ as the path to more(1); helps X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- No need to hardcode /usr/bin/ as the path to more(1); helps portability. We don't hardcode the paths to gunzip(1) and cmp(1) either. Discussed with ajacoutot@. Modified Files: -------------- mdocml: apropos.1 main.c man.1 mandoc.1 Revision Data ------------- Index: man.1 =================================================================== RCS file: /home/cvs/mdocml/mdocml/man.1,v retrieving revision 1.13 retrieving revision 1.14 diff -Lman.1 -Lman.1 -u -p -r1.13 -r1.14 --- man.1 +++ man.1 @@ -381,7 +381,8 @@ Specifies the pagination program to use .Ev MANPAGER is not defined. If neither PAGER nor MANPAGER is defined, -.Pa /usr/bin/more Fl s +.Xr more 1 +.Fl s will be used. .El .Sh FILES Index: main.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/main.c,v retrieving revision 1.231 retrieving revision 1.232 diff -Lmain.c -Lmain.c -u -p -r1.231 -r1.232 --- main.c +++ main.c @@ -997,7 +997,7 @@ spawn_pager(void) if (pager == NULL || *pager == '\0') pager = getenv("PAGER"); if (pager == NULL || *pager == '\0') - pager = "/usr/bin/more -s"; + pager = "more -s"; cp = mandoc_strdup(pager); /* Index: mandoc.1 =================================================================== RCS file: /home/cvs/mdocml/mdocml/mandoc.1,v retrieving revision 1.158 retrieving revision 1.159 diff -Lmandoc.1 -Lmandoc.1 -u -p -r1.158 -r1.159 --- mandoc.1 +++ mandoc.1 @@ -502,7 +502,8 @@ Specifies the pagination program to use .Ev MANPAGER is not defined. If neither PAGER nor MANPAGER is defined, -.Pa /usr/bin/more Fl s +.Xr more 1 +.Fl s will be used. .El .Sh EXIT STATUS Index: apropos.1 =================================================================== RCS file: /home/cvs/mdocml/mdocml/apropos.1,v retrieving revision 1.38 retrieving revision 1.39 diff -Lapropos.1 -Lapropos.1 -u -p -r1.38 -r1.39 --- apropos.1 +++ apropos.1 @@ -365,7 +365,8 @@ Specifies the pagination program to use .Ev MANPAGER is not defined. If neither PAGER nor MANPAGER is defined, -.Pa /usr/bin/more Fl s +.Xr more 1 +.Fl s will be used. .El .Sh FILES -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv