From owner-freebsd-stable Wed Dec 22 17:44:32 1999 Delivered-To: freebsd-stable@freebsd.org Received: from alcanet.com.au (border.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id 6B8A7156CB for ; Wed, 22 Dec 1999 17:44:23 -0800 (PST) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <40332>; Thu, 23 Dec 1999 12:35:16 +1100 Content-return: prohibited Date: Thu, 23 Dec 1999 12:44:07 +1100 From: Peter Jeremy Subject: Re: /bin/test broken ? In-reply-to: <19991223040949.D4940@high.net.ru>; from vlad@high.net.ru on Thu, Dec 23, 1999 at 12:09:49PM +1100 To: Vlad Skvortsov Cc: freebsd-stable@FreeBSD.ORG Message-Id: <99Dec23.123516est.40332@border.alcanet.com.au> MIME-version: 1.0 X-Mailer: Mutt 1.0i Content-type: text/plain; charset=us-ascii References: <19991223040949.D4940@high.net.ru> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 1999-Dec-23 12:09:49 +1100, Vlad Skvortsov 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