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.
Best regards,
Fabian
--
SWITCH
Fabian Mauchle, Network Engineer
Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 30, direct +41 44 268 15 39
fabian.mauchle(a)switch.ch,
www.switch.ch