When you don't get what you asked for, you get angry.
When you add a tiny bit, it should be "more" or "less" still,
or you'll get angry.
So lets make zmore(1) call more(1) and zless(1) call less(1),
as it's supposed to be.
okay and input from ingo@, no objections from author AKA millert@
#!/bin/sh -
#
-# $OpenBSD: zmore,v 1.6 2008/08/20 09:22:02 mpf Exp $
+# $OpenBSD: zmore,v 1.7 2014/05/07 21:42:50 zhuk Exp $
#
# Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com>
#
done
if [ `basename $0` == "zless" ] ; then
- pager=${PAGER-less}
+ pager=less
else
- pager=${PAGER-more}
+ pager=more
fi
# No files means read from stdin
-.\" $OpenBSD: zmore.1,v 1.10 2009/08/16 09:41:08 sobrado Exp $
+.\" $OpenBSD: zmore.1,v 1.11 2014/05/07 21:42:50 zhuk Exp $
.\"
.\" Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
.\"
-.Dd $Mdocdate: August 16 2009 $
+.Dd $Mdocdate: May 7 2014 $
.Dt ZMORE 1
.Os
.Sh NAME
formats are supported).
Any
.Ar flags
-that are specified are passed to the user's preferred
-.Ev PAGER
-(which is
-.Pa /usr/bin/more
-by default).
+that are specified are passed to
+.Xr more 1
+or
+.Xr less 1 ,
+respectively.
.Pp
.Nm zless
is equivalent to
will assume
.Xr gzip 1
style compression since there is no suffix on which to make a decision.
-.Sh ENVIRONMENT
-.Bl -tag -width "PAGER"
-.It Ev PAGER
-Program used to display files.
-If unset,
-.Pa /usr/bin/more
-is used
-.Pq Nm zmore
-or
-.Pa /usr/bin/less
-.Pq Nm zless .
-.El
.Sh SEE ALSO
.Xr compress 1 ,
.Xr gzip 1 ,