Subject: Re: test: ==: unexpected operator
To: David Brownlee <abs@NetBSD.org>
From: Quentin Garnier <cube@cubidou.net>
List: tech-userlevel
Date: 09/22/2006 18:07:56
--iamKNtDj9HjMhSdE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 22, 2006 at 03:56:46PM +0100, David Brownlee wrote:
> On Fri, 22 Sep 2006, Juan RP wrote:
>=20
> >On Fri, 22 Sep 2006 08:59:40 +0200
> >Quentin Garnier <cube@cubidou.net> wrote:
> >
> >>On Fri, Sep 22, 2006 at 02:06:08AM +0200, Hubert Feyrer wrote:
> >>>
> >>>bash/Linux allows "=3D=3D" as an alternative to "=3D" in their test(1)
> >>>command. I wonder if we want to save some trouble and just make our
> >>>test(1) silently accept that too, instead of fixing all the broken
> >>>scripts out there.
> >>>
> >>>It'd be an extension to POSIX, so I don't see much of a problem.
> >>>
> >>>Any thoughts?
> >>
> >>I don't really see the point.  Scripts that do that in pkgsrc will
> >>have to be fixed no matter what because there are platforms we cannot
> >>bastardize the same way we can with NetBSD.  Changing this will just
> >>make them harder to detect, because a lot of pkgsrc developers use
> >>NetBSD to do pkgsrc work.
> >
> >I agree. The person should fix its stupid bash scripts.
>=20
> 	I like the 'accept it with a warning to stderr' idea, in
> 	case anyone is counting...

I like it too, but what would be awesome is an option to force it to
fail when executed from inside pkgsrc.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.

--iamKNtDj9HjMhSdE
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iQEVAwUBRRQKXNgoQloHrPnoAQKKvAf+OIi80J5+lOkSjmmdPItohnUBdmXTHics
D8TrOlZzaOBFh7DWzvcoqerdjMAhACXwhPcPaPfsuo4fLlEjkU8UEVBE1L6+3WbH
k90gBgY5evwZoG6Spj/dUaFvp3hlCLe168Pqx63YJMQM8oIqO9GOPjDdN+AOUMA0
11jzcBMMA81HpF0wew0VvqPeG8GRMBmDnlaSIMX3dZB1zShY99S+baXD/602bJ7g
06JA3mxSVLDgmjT2HZXMUVw6loKtGkkMrk3CI0jcIDJAD0Gpw2XAryouJH1cFwjC
YkOMRS4NH+0ZwBIP2xfCPBawCaky5rvc0YhRG/3Zh6g4sq8kbwvoNg==
=G2Nr
-----END PGP SIGNATURE-----

--iamKNtDj9HjMhSdE--