${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
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.