From: Paul Eggert Date: Sun, 29 Sep 2002 07:14:43 +0000 (+0000) Subject: Use LESSOPEN, not PAGER. X-Git-Tag: v1.3.12~72 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=d803d7fdf5bb5f4dbf2b7bbc470f4583c8abbeea;p=debian%2Fgzip Use LESSOPEN, not PAGER. --- 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 "$@"