Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Apr 2007 10:06:33 +0100
From:      Tom Evans <tevans.uk@googlemail.com>
To:        Joe Marcus Clarke <marcus@FreeBSD.org>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: Problem with test(1)
Message-ID:  <1175763993.1318.23.camel@zoot.mintel.co.uk>
In-Reply-To: <1175757140.67579.50.camel@shumai.marcuscom.com>
References:  <1175757140.67579.50.camel@shumai.marcuscom.com>

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

[-- Attachment #1 --]
On Thu, 2007-04-05 at 03:12 -0400, Joe Marcus Clarke wrote:
> 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
> 

He means http://www.marcuscom.com/downloads/test.c.diff

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQBGFLwZlcRvFfyds/cRAvkPAJ9oCayA5cR516wtz0xfvsac79OnnQCgn2b1
5LvQhbm+WuW38c/SC8hmcwI=
=C1QJ
-----END PGP SIGNATURE-----

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