Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 2013 19:52:37 +0000 (UTC)
From:      jb <jb.1234abcd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Bourne shell "if" syntax
Message-ID:  <loom.20130610T214814-692@post.gmane.org>
References:  <51b620a6.42f.2b6a6400.5605dcf0@go2france.com> <121701ce660c$9a9aa5b0$cfcff110$@freebsd.org> <51B62389.5000500@tundraware.com> <121b01ce660e$2abae5f0$8030b1d0$@freebsd.org> <51B62622.1070201@tundraware.com> <CAHu1Y70FNX8G2ARF5zBzRbu5iMsXVkUCouBk-YruY3xH1gWsqg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Sierchio <kudzu <at> tenebras.com> writes:

> ... 
> Right.  Many scripts seem to assume that sh is bash, and that's
> certainly not the case here.
> 
> if [ "x$BLAH" = "x" ]; then
> 
> is the most reliable and portable way of determining if it's a string
> of zero length.

Actually this trick is not needed any more (it has not been required for
long time because the problem was fixed).
http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2012-August/004275.html

jb







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?loom.20130610T214814-692>