Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Apr 2007 02:30:55 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        freebsd-hackers@freebsd.org
Subject:   Problem with test(1)
Message-ID:  <1175754655.67579.41.camel@shumai.marcuscom.com>

next in thread | raw e-mail | index | archive | help

--=-k00fuJWJgiqlU69TYR/u
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I noticed something weird with test(1) when I ran across a problem port
Makefile.  Our test(1) doesn't properly check to make sure there is an
operand argument to unary operators like -f.  For example:

test -f

Will print "TRUE" on FreeBSD.  On Solaris, it will die:

/usr/bin/test[8]: test: argument expected

I think this patch is correct in that it does fix the problem, and the
TEST.sh and TEST.csh regression scripts report the same results pre and
post-patch.  Comments?

http://www.marcuscom.com/downloads/text.c.diff

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-k00fuJWJgiqlU69TYR/u
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQBGFJecb2iPiv4Uz4cRAhGqAJoDKjCVYO7bCiQtkG5pC474HnAczQCgkedv
zlg6DX2CGLAS7I/zCBdNZUQ=
=Dj/L
-----END PGP SIGNATURE-----

--=-k00fuJWJgiqlU69TYR/u--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1175754655.67579.41.camel>