GNU bug report logs - #18427
Fwd: 'less' bug report

Previous Next

Package: gzip;

Reported by: J B <jb.1234abcd <at> gmail.com>

Date: Mon, 8 Sep 2014 17:18:01 UTC

Severity: normal

Merged with 16951

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: J B <jb.1234abcd <at> gmail.com>
To: bug-gzip <at> gnu.org
Cc: selinger <at> users.sf.net
Subject: Fwd: 'less' bug report
Date: Mon, 8 Sep 2014 19:11:40 +0200
[Message part 1 (text/plain, inline)]
Hi,
could you please fix the 'zless' bug described.

'less' ver. 451 log;
Use exit code of LESSOPEN script if LESSOPEN starts with "||".

Thanks,
jb


---------- Forwarded message ----------
From: Mark Nudelman <markn <at> greenwoodsoftware.com>
Date: Mon, Sep 8, 2014 at 5:54 PM
Subject: Re: 'less' bug report
To: J B <jb.1234abcd <at> gmail.com>


Hi jb,
This was fixed in less-451 with the introduction of the double pipe
syntax in LESSOPEN.  It requires your lessopen script to return the
appropriate exit code.

--Mark

On 9/8/2014 7:31 AM, J B wrote:
> Hi,
> this is a bug report for 'less' entry.
>
> $ touch empty.txt
> $ less empty.txt
> empty.txt (END)
> $ gzip empty.txt
> $ zless empty.txt.gz
> "empty.txt.gz" may be a binary file.  See it anyway?
>
> The last response should be as for 'less empty.txt'.
> According to Peter Selinger, author of ccrypt utilities:
> "The problem is that less, when using an input filter, regards an empty
> file
> as a condition indicating "filtering unsuccessful", and will just show
> the unfiltered file instead."
> This 'less' behavior causes a problem for other utilities as well.
>
> jb
>
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 338 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.