From d803d7fdf5bb5f4dbf2b7bbc470f4583c8abbeea Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 29 Sep 2002 07:14:43 +0000 Subject: [PATCH] Use LESSOPEN, not PAGER. --- zless.1 | 7 ++++--- zless.in | 14 +++----------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/zless.1 b/zless.1 index 996fb0c..844f5d5 100644 --- a/zless.1 +++ b/zless.1 @@ -8,9 +8,10 @@ zless \- file perusal filter for crt viewing of compressed text .I Zless is a filter which allows examination of compressed or plain text files one screenful at a time on a soft-copy terminal. It is the equivalent of -setting the environment variable PAGER to -.I less, -and then running zmore. However, enough people seem to think that having the +setting the environment variable LESSOPEN to "|gzip -cdfq %s", +and then running +.IR less . +However, enough people seem to think that having the command .I zless available is important to be worth providing it. diff --git a/zless.in b/zless.in index 3f707d5..5c9bf48 100644 --- a/zless.in +++ b/zless.in @@ -1,13 +1,5 @@ : #!/bin/sh - -: ${PAGER=less} -export PAGER - -PATH="BINDIR:$PATH" -export PATH - -ZMORE_PROGRAM_NAME=$0 -export ZMORE_PROGRAM_NAME - -exec zmore ${1+"$@"} +PATH="BINDIR:$PATH"; export PATH +LESSOPEN="|gzip -cdfq %s"; export LESSOPEN +exec less "$@" -- 2.47.2