mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Set enviroment variable PAGER=pager if using option `man -P pager'
This inherit variable PAGER for childs like whatis(1), e.g. `man -P less -k man' should now work like expected. Close PR#1068
This commit is contained in:
parent
2237ee9753
commit
fe0614bf6e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18327
@ -315,6 +315,8 @@ man_getopt (argc, argv)
|
||||
break;
|
||||
case 'P':
|
||||
pager = strdup (optarg);
|
||||
if (setenv("PAGER", pager, 1) != 0)
|
||||
(void)fprintf(stderr, "setenv PAGER=%s\n", pager);
|
||||
break;
|
||||
case 'S':
|
||||
colon_sep_section_list = strdup (optarg);
|
||||
|
Loading…
Reference in New Issue
Block a user