Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2015 14:12:17 -0500
From:      Ed Maste <emaste@freebsd.org>
To:        Garrett Cooper <yaneurabeya@gmail.com>
Cc:        Ian Lepore <ian@freebsd.org>, Warner Losh <imp@freebsd.org>,  "src-committers@freebsd.org" <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r291929 - head/tools/tools/nanobsd
Message-ID:  <CAPyFy2D-qMiSEZ3WA09rVcxC4QW42qWmV%2BEshcOOCFr=46hmKQ@mail.gmail.com>
In-Reply-To: <5FA6DD6B-C70B-4E5A-BD04-5897B02E5FC8@gmail.com>
References:  <201512071024.tB7AOcjr094296@repo.freebsd.org> <1449512013.1358.6.camel@freebsd.org> <5FA6DD6B-C70B-4E5A-BD04-5897B02E5FC8@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7 December 2015 at 14:07, Garrett Cooper <yaneurabeya@gmail.com> wrote:
>
> Warner's commit was good. There's a more bulletproof way to do this to make it more portable (in most cases, not all), but it would be overkill:
>
> [ "x$x" != x ]

That construct is to support ancient shells that haven't been relevant
for a very long time. It's not necessary today and only serves to
confuse the reader.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2D-qMiSEZ3WA09rVcxC4QW42qWmV%2BEshcOOCFr=46hmKQ>