Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Dec 1999 12:44:07 +1100
From:      Peter Jeremy <peter.jeremy@alcatel.com.au>
To:        Vlad Skvortsov <vlad@high.net.ru>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: /bin/test broken ?
Message-ID:  <99Dec23.123516est.40332@border.alcanet.com.au>
In-Reply-To: <19991223040949.D4940@high.net.ru>; from vlad@high.net.ru on Thu, Dec 23, 1999 at 12:09:49PM %2B1100
References:  <19991223040949.D4940@high.net.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99Dec23.123516est.40332>