> -----Original Message-----
> From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
> questi...@freebsd.org] On Behalf Of jb
> Sent: Monday, June 10, 2013 12:53 PM
> To: freebsd-questions@freebsd.org
> Subject: Re: Bourne shell "if" syntax
> 
> 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
> 

The above link reinforces what I mentioned earlier as the divide.

Differs based on whether "[" is a built-in versus /usr/bin/[
-- 
Devin

_____________
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to