Fabian Mauchle fabian.mauchle@switch.ch wrote Fri, 16 Sep 2016 16:02:29 +0200:
Hi Linus,
On 16/09/16 12:15, Linus Nordberg wrote:
I'm curious about the test for "$DOCBOOK2X_MAN" being false though. I'd like to replace that with "test -z" if you too think that's equivalent:
if test -z "$DOCBOOK2X_MAN" ; then
What do you think?
It seems (like in most languages) that a non-zero (or non-zero-length string) value is interpreted as true, so at least it works (for me). But I fully agree that "test -z" is the better way to do this.
Thanks. Merged to master.