GNU bug report logs - #29648
BUG in zless and similar scripts?

Previous Next

Package: gzip;

Reported by: Michele Venturi <dardo82 <at> gmail.com>

Date: Sun, 10 Dec 2017 18:00:02 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29648 in the body.
You can then email your comments to 29648 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#29648; Package gzip. (Sun, 10 Dec 2017 18:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michele Venturi <dardo82 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Sun, 10 Dec 2017 18:00:02 GMT) Full text and rfc822 format available.

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

From: Michele Venturi <dardo82 <at> gmail.com>
To: bug-gzip <at> gnu.org
Subject: BUG in zless and similar scripts?
Date: Sun, 10 Dec 2017 10:26:32 +0100
[Message part 1 (text/plain, inline)]
As you can see here: https://pastebin.com/Q7fcrYhp
there is an error in the parameters expansion syntax.

It should be "${LESSMETACHARS:+set}" and not just
"${LESSMETACHARS+set}". zdiff, zgrep and zmore
miss a colon in the source code in the same way.
--
http://profiles.google.com/dardo82
[Message part 2 (text/html, inline)]

Information forwarded to bug-gzip <at> gnu.org:
bug#29648; Package gzip. (Wed, 13 Dec 2017 00:59:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Michele Venturi <dardo82 <at> gmail.com>, 29648 <at> debbugs.gnu.org
Subject: Re: bug#29648: BUG in zless and similar scripts?
Date: Tue, 12 Dec 2017 16:58:26 -0800
On 12/10/2017 01:26 AM, Michele Venturi wrote:
> As you can see here:https://pastebin.com/Q7fcrYhp
> there is an error in the parameters expansion syntax.
>
> It should be "${LESSMETACHARS:+set}" and not just
> "${LESSMETACHARS+set}". zdiff, zgrep and zmore
> miss a colon in the source code in the same way.

Why is this a bug? I don't see the problem. Can you give an example of 
misbehavior because of the bug?

Perhaps the simplest fix for the bug, once we know what it is, would be 
to remove the workaround for less 394 and earlier, as I doubt whether 
anyone would combine a 'less' that old with new 'gzip'.





Information forwarded to bug-gzip <at> gnu.org:
bug#29648; Package gzip. (Wed, 13 Dec 2017 01:51:01 GMT) Full text and rfc822 format available.

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

From: Vidar Holen <vidar <at> vidarholen.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 29648 <at> debbugs.gnu.org, Michele Venturi <dardo82 <at> gmail.com>
Subject: Re: bug#29648: BUG in zless and similar scripts?
Date: Tue, 12 Dec 2017 17:50:12 -0800
[Message part 1 (text/plain, inline)]
${var:+value} and ${var+value} differ in how they handle the case when
var="" (i.e. defined, and assigned the empty string).

In this case, the check verifies that LESSMETACHARS is set (even if it's
set to the empty string), so it seems correct as is.

On Tue, Dec 12, 2017 at 4:58 PM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:

> On 12/10/2017 01:26 AM, Michele Venturi wrote:
>
>> As you can see here:https://pastebin.com/Q7fcrYhp
>> there is an error in the parameters expansion syntax.
>>
>> It should be "${LESSMETACHARS:+set}" and not just
>> "${LESSMETACHARS+set}". zdiff, zgrep and zmore
>> miss a colon in the source code in the same way.
>>
>
> Why is this a bug? I don't see the problem. Can you give an example of
> misbehavior because of the bug?
>
> Perhaps the simplest fix for the bug, once we know what it is, would be to
> remove the workaround for less 394 and earlier, as I doubt whether anyone
> would combine a 'less' that old with new 'gzip'.
>
>
>
>
>
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Fri, 01 Apr 2022 00:06:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 29648 <at> debbugs.gnu.org and Michele Venturi <dardo82 <at> gmail.com> Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Fri, 01 Apr 2022 00:06:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 29 Apr 2022 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 355 days ago.

Previous Next


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