bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#29648: BUG in zless and similar scripts?


From: Vidar Holen
Subject: bug#29648: BUG in zless and similar scripts?
Date: Tue, 12 Dec 2017 17:50:12 -0800

${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 <address@hidden> 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'.
>
>
>
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]