Your message dated Mon, 10 Sep 2018 20:11:09 +0200
with message-id <[email protected]>
and subject line Fixed in gzip 1.5
has caused the Debian Bug report #407278,
regarding gzip: zless: make it work as a pipe command too
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
407278: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407278
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gzip
Version: 1.3.5-15
Severity: normal

hi,

it's a long standing bug:

% zless file.gz

works, while 

% zless < file.gz

doesn't. That'd be useful in eg mutt when piping out .gz attachments.
Following patch makes zless work on pipes like eg bzless.

#--[zless.diff]------------
--- /bin/zless.orig     Wed Jan 17 11:42:33 2007
+++ /bin/zless  Wed Jan 17 11:41:16 2007
@@ -1,4 +1,8 @@
 #!/bin/sh
 PATH="/usr/bin:$PATH"; export PATH
-LESSOPEN="|gzip -cdfq %s"; export LESSOPEN
-exec less "$@"
+case $# in
+  0) LESS="gzip -cdq | less" ;;
+  *) LESS="gzip -cdfq \"$1\" | less" ;;
+esac
+eval exec $LESS
+
#--------------------------

--
paolo


--- End Message ---
--- Begin Message ---
Source: gzip
Version: 1.5-1

This problem has been fixed in gzip 1.5[1].  The patch requires less 429
or later, but that version has been in Debian for over nine years already.


1. 
https://git.savannah.gnu.org/cgit/gzip.git/commit/?id=ee0e33940f9e6cb0225692337fa06c981108c64e

--- End Message ---

Reply via email to