From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-26945-garchives=archives.gentoo.org@gentoo.org>)
	id 1IeaBg-0000u3-MI
	for garchives@archives.gentoo.org; Sun, 07 Oct 2007 17:45:09 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l97HYA0w009981;
	Sun, 7 Oct 2007 17:34:10 GMT
Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50])
	by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l97HVZAP006617
	for <gentoo-dev@lists.gentoo.org>; Sun, 7 Oct 2007 17:31:36 GMT
Received: from [10.73.1.30] (uberpc.marples.name [10.73.1.30])
	(using TLSv1 with cipher RC4-MD5 (128/128 bits))
	(No client certificate requested)
	by mail.marples.name (Postfix) with ESMTP id 28FA9190038
	for <gentoo-dev@lists.gentoo.org>; Sun,  7 Oct 2007 18:21:19 +0100 (BST)
Subject: Re: [gentoo-dev]  Re: RFC: sh versionator.eclass
From: Roy Marples <uberlord@gentoo.org>
To: gentoo-dev@lists.gentoo.org
In-Reply-To: <200710070109.18838.vapier@gentoo.org>
References: <200710012259.40589.uberlord@gentoo.org>
	 <1191335103.2189.22.camel@uberlaptop.development.ltl>
	 <200710021830.26584.george@gentoo.org>
	 <200710070109.18838.vapier@gentoo.org>
Content-Type: text/plain; charset=utf-8
Organization: Gentoo
Date: Sun, 07 Oct 2007 18:31:01 +0100
Message-Id: <1191778261.2499.0.camel@uberpc.marples.name>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
Mime-Version: 1.0
X-Mailer: Evolution 2.10.3 
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id l97HYA2f009981
X-Archives-Salt: 5c6f20d2-64dc-493b-bd5d-0a14f11a9edb
X-Archives-Hash: 7dee4b779347899bb9df95e81a8e1962

On Sun, 2007-10-07 at 01:09 -0400, Mike Frysinger wrote:
> On Tuesday 02 October 2007, George Shapovalov wrote:
> > Tuesday, 2. October 2007, Roy Marples =D0=92=D0=B8 =D0=BD=D0=B0=D0=BF=
=D0=B8=D1=81=D0=B0=D0=BB=D0=B8:
> > > And here it is
> >
> > -       if [[ "${FORTRANC}" =3D "gfortran" ]]; then
> > +       if [ "${FORTRANC}" =3D "gfortran" ]; then
> >
> > You know, it is funny to see these lines after all those cries about =
how [
> > is evil and we should really never ever use it but rather always use =
[[
> > form :).
> >
> > Oh, btw, does the compliant sh correctly process the most cited
> > composition? : [ -n $foo ] && [ -z $foo ] && echo "huh?"
> > (straight from devmanual, the primary reason why [ is  considered bad=
)
>=20
> [...] will crap a brick if foo expands to multiple arguments

Only if unquoted.

>  which is why=20
> [[...]] is preferred ... it'll do the sane thing and work correctly=20

Which encourages developers not to quote in my view.

Roy

--=20
gentoo-dev@gentoo.org mailing list