Use LESSOPEN, not PAGER.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Sep 2002 07:14:43 +0000 (07:14 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Sep 2002 07:14:43 +0000 (07:14 +0000)
zless.1
zless.in

diff --git a/zless.1 b/zless.1
index 996fb0caf366c496018b6dd283bac3e7b0fe7d1c..844f5d5c51d40bb15222486bffbae570e44df7c0 100644 (file)
--- 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.
index 3f707d567af8380273a44476d14e183d439caa3f..5c9bf48bc9ec111964c31b1837c78022f76f59e4 100644 (file)
--- 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 "$@"