From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 07:50:40 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1227616A401 for ; Thu, 5 Apr 2007 07:50:40 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.freebsd.org (Postfix) with ESMTP id C65F913C44C for ; Thu, 5 Apr 2007 07:50:39 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.13.8/8.13.8) with ESMTP id l357CfZ2075725 for ; Thu, 5 Apr 2007 03:12:41 -0400 (EDT) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: freebsd-hackers@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-0d2p97g5INxa84DmiEQ0" Organization: FreeBSD, Inc. Date: Thu, 05 Apr 2007 03:12:20 -0400 Message-Id: <1175757140.67579.50.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Cc: Subject: Problem with test(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 07:50:40 -0000 --=-0d2p97g5INxa84DmiEQ0 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 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-0d2p97g5INxa84DmiEQ0 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) iD8DBQBGFKFUb2iPiv4Uz4cRAnwgAJ0UCyafuPl+bJXC9bEb2J5S7fGyfwCeKqkS taxT5HQGwJDbYz7auoxFLbs= =pQwD -----END PGP SIGNATURE----- --=-0d2p97g5INxa84DmiEQ0--