From owner-freebsd-stable Thu Dec 23 11: 2:20 1999 Delivered-To: freebsd-stable@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id F093E14DCB for ; Thu, 23 Dec 1999 11:02:15 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.11 #1) id 121DVy-000Eyr-00; Thu, 23 Dec 1999 21:03:06 +0200 From: Sheldon Hearn To: Gerald Pfeifer Cc: Marcin Cieslak , freebsd-stable@FreeBSD.ORG Subject: Re: /bin/test broken ? In-reply-to: Your message of "Thu, 23 Dec 1999 14:57:56 +0100." Date: Thu, 23 Dec 1999 21:03:06 +0200 Message-ID: <57588.945975786@axl.noc.iafrica.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 23 Dec 1999 14:57:56 +0100, Gerald Pfeifer wrote: > > What's _the_ standard? > > You would have to consult POSIX or whatever, I guess, but clearly the > first variant is not portable (in practice) so one should refrain from > using it anyway. Not only is it not portable, but it's also not POSIX.2. :-) The POSIX.2 Synopsis for test gives: test {expression} [ {expression} ] While other vendors may have chosen to allow a mongrel of these two, folks wishing to keep their scripts portable should refrain from using such a hybrid. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message