Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Dec 1999 21:03:06 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Cc:        Marcin Cieslak <saper@system.pl>, freebsd-stable@FreeBSD.ORG
Subject:   Re: /bin/test broken ? 
Message-ID:  <57588.945975786@axl.noc.iafrica.com>
In-Reply-To: Your message of "Thu, 23 Dec 1999 14:57:56 %2B0100." <Pine.GSO.4.20.9912231453570.10808-100000@alphard.dbai.tuwien.ac.at> 

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


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




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