Subject: Re: TEST -d vs TEST -f
To: None <tech-pkg@NetBSD.org>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 07/07/2004 11:51:49
--XFI+TFG+M3u0jUjZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 06, 2004 at 10:30:43PM +0200, Klaus Heinz wrote:

> Hi,
>=20
> is this test in revision 1.1474 of bsd.pkg.mk, line 2713=20
>=20
>   if (system("${TEST} -f ${PREFIX}/" $$0) =3D=3D 0) {=20
>=20
> correct?
>=20
> I cannot imagine PREFIX ever being a file...

it's not testing for the directory "${PREFIX}/" but rather the file
"${PREFIX}/$$0" :)

grant.


--XFI+TFG+M3u0jUjZ
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFA61c1luYOb9yiFXoRAndJAJ9rO2m3z0U74s/utal5rzzh07H+fQCdGD/U
D4/ZN42/St4YIhqcHiCOwGI=
=EAaz
-----END PGP SIGNATURE-----

--XFI+TFG+M3u0jUjZ--