diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-06-10 22:38:04 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-06-10 22:38:04 +0000 |
commit | e1ff3b5725e84a6aaa6367f03b0f19611f098f3e (patch) | |
tree | 58448540b9be32681cb4a1e7924a7f2fb418b574 /usr.bin/man/man.c | |
parent | 91e387e025fd867bb2fa8137068dae52cea527a5 (diff) |
Handle PAGER in a manner consistent with the Single Unix Specification:
that is, use PAGER rather than "more" if it is defined and non-null, not
just if it is defined.
Diffstat (limited to 'usr.bin/man/man.c')
-rw-r--r-- | usr.bin/man/man.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/man/man.c b/usr.bin/man/man.c index 6113244e275..7a35112010a 100644 --- a/usr.bin/man/man.c +++ b/usr.bin/man/man.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man.c,v 1.12 1998/11/16 06:28:32 deraadt Exp $ */ +/* $OpenBSD: man.c,v 1.13 1999/06/10 22:38:02 pjanzen Exp $ */ /* $NetBSD: man.c,v 1.7 1995/09/28 06:05:34 tls Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95"; #else -static char rcsid[] = "$OpenBSD: man.c,v 1.12 1998/11/16 06:28:32 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: man.c,v 1.13 1999/06/10 22:38:02 pjanzen Exp $"; #endif #endif /* not lint */ @@ -163,7 +163,7 @@ main(argc, argv) if (!f_cat && !f_how && !f_where) if (!isatty(1)) f_cat = 1; - else if ((pager = getenv("PAGER")) != NULL) + else if ((pager = getenv("PAGER")) != NULL && (*pager != '\0')) pager = check_pager(pager); else pager = _PATH_PAGER; |