Date: Thu, 23 Dec 1999 14:57:56 +0100 (MET) From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> To: Marcin Cieslak <saper@system.pl> Cc: freebsd-stable@freebsd.org Subject: Re: /bin/test broken ? Message-ID: <Pine.GSO.4.20.9912231453570.10808-100000@alphard.dbai.tuwien.ac.at> In-Reply-To: <Pine.GSO.4.20.9912231402460.18183-100000@tricord.system.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 23 Dec 1999, Marcin Cieslak wrote: > Recent -stable: > > $ /bin/test 1 -ne 0 ] > test: syntax error > $ [ 1 -ne 0 ] > $ > > but on Solaris 2.5 in both sh and ksh: > > $ /bin/test 1 -ne 0 ] > $ [ 1 -ne 0 ] > $ SuSE Linux 6.3: sh-2.03$ /usr/bin/test 1 -ne 0 ] /usr/bin/test: too many arguments > 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. http://www.UNIX-systems.org/ has a lot on standards, by the way. Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ 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.GSO.4.20.9912231453570.10808-100000>