From 62e365689669ed351e0e77d03d564ebc5592fbd7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 24 Oct 2005 17:23:16 +0000 Subject: [PATCH] - try 7z first for .zip/.jar files as it's capable of dealing large files Changed files: lesspipe.sh -> 1.18 --- lesspipe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lesspipe.sh b/lesspipe.sh index ea25869..294d6de 100644 --- a/lesspipe.sh +++ b/lesspipe.sh @@ -32,7 +32,7 @@ lesspipe() { *.[Zz]|*.gz) gzip -dc -- "$1" ;; *.bz) bzip -dc -- "$1" ;; *.bz2) bzip2 -dc -- "$1" ;; - *.zip|*.jar) unzip -l "$1" ;; + *.zip|*.jar) 7z l "$1" || unzip -l "$1" ;; *.rpm) rpm -qpivl --changelog -- "$1" ;; *.rar) unrar -p- l -- "$1" ;; *.cpi|*.cpio) cpio -itv < "$1" ;; -- 2.44.0