diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-09 18:41:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-09 18:41:47 +0000 |
commit | 302e9104b8b3669882783f2d92030ea28562344d (patch) | |
tree | c1bacee5cb621b97b26f436c3ec05afe0beca438 /usr.bin/less | |
parent | f35db35223b2f74a59f17bf91972e9758f42ff0d (diff) |
stop acting like "more" if progname is "page"; ok millert
Diffstat (limited to 'usr.bin/less')
-rw-r--r-- | usr.bin/less/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/less/main.c b/usr.bin/less/main.c index 192894e6855..2754bd120ae 100644 --- a/usr.bin/less/main.c +++ b/usr.bin/less/main.c @@ -75,10 +75,9 @@ main(int argc, char *argv[]) * act like LESS_IS_MORE is set. We have to set this as early * as possible for POSIX. */ - if ((strcmp(progname, "more") == 0) || - (strcmp(progname, "page") == 0)) { + if (strcmp(progname, "more") == 0) less_is_more = 1; - } else { + else { s = lgetenv("LESS_IS_MORE"); if (s != NULL && *s != '\0') less_is_more = 1; |