summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/man
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>1996-09-16 22:52:02 +0000
committerWolfram Schneider <wosch@FreeBSD.org>1996-09-16 22:52:02 +0000
commitfe0614bf6e987406050343770f79227f19ee1e72 (patch)
tree6be1d4da0ac5ba374a39646b71aa32ef8262b620 /gnu/usr.bin/man
parent2237ee97530d64068ed94a95d073bc870b7e1b94 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/man')
-rw-r--r--gnu/usr.bin/man/man/man.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c
index 510dae6f0ec8..e9259b9d6e3e 100644
--- a/gnu/usr.bin/man/man/man.c
+++ b/gnu/usr.bin/man/man/man.c
@@ -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);