Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Dec 1999 00:45:40 -0500 (EST)
From:      "Eric D. Futch" <efutch@nyct.net>
To:        Peter Jeremy <peter.jeremy@alcatel.com.au>
Cc:        Vlad Skvortsov <vlad@high.net.ru>, freebsd-stable@FreeBSD.ORG
Subject:   Re: /bin/test broken ?
Message-ID:  <Pine.BSF.4.05.9912230044370.27298-100000@bsd1.nyct.net>
In-Reply-To: <99Dec23.123516est.40332@border.alcanet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
-stable as of Wed Dec 22 01:48:17 EST 1999 dosen't seem to have this
problem.

% /bin/test 1 -ne 0 ]
test: ]: unexpected operator

--
Eric Futch              New York Connect.Net, Ltd.
efutch@nyct.net         Technical Support Staff
http://www.nyct.net     (212) 293-2620
"Bringing New York The Internet Access It Deserves"


On Thu, 23 Dec 1999, Peter Jeremy wrote:

On 1999-Dec-23 12:09:49 +1100, Vlad Skvortsov <vlad@high.net.ru> wrote:
>	Seems like /bin/test is broken after cvsup on Dec 16:
>
>	$ /bin/test 1 -ne 0 ]
>	[: ]: unexpected operator

What behaviour were you expecting?  That command should have been
expressed as either:
	$ /bin/test 1 -ne 0
or	$ [ 1 -ne 0 ]

Mixing `test' and `]' is not allowed, so producing an error message is
the correct response.

That said, the error message should have been:
	test: ]: unexpected operator
and it is not clear why you are getting `[' reported as the program
name.  As far as I can tell, nothing related to test or errx(3) has
been updated recently.  (I'm not actually running -stable, so I can't
confirm the behaviour).

Peter


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9912230044370.27298-100000>