Date: Wed, 29 Dec 1999 09:20:33 -0500 (EST) From: Will Andrews <andrews@TECHNOLOGIST.COM> To: "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net> Cc: freebsd-stable@FreeBSD.ORG, (Peter Jeremy) <peter.jeremy@alcatel.com.au> Subject: Re: /bin/test broken ? Message-ID: <XFMail.991229092033.andrews@TECHNOLOGIST.COM> In-Reply-To: <199912290115.RAA71526@gndrsh.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 29-Dec-99 Rodney W. Grimes wrote:
> Thus, zsh is broken :-(. Here is a working /bin/csh on FreeBSD 3.3 with
> a working /bin/[ doing this thing correctly:
> gndrsh:root {1134}# sh -c '/bin/[ 1 -ne 0 ] && echo correct'
> correct
zsh isn't really meant to be 100% sh compatible.. :)
It's said that every derivative deviates from its origin.. this is just another
example. :)
> And a working /bin/sh FreeBSD 3.3 with a working /bin/[ doing this correctly:
># sh -c '/bin/[ 1 -ne 0 ] && echo correct'
> correct
It's still possible to use zsh to do this kind of check. Although why anyone
would want to use zsh for something as simple as this eludes me.
I only write scripts using sh, for anything that needs more complex code that
is not supported by sh, I use Perl.
zsh is intended as an environment shell, not a scripting shell.
--
Will Andrews <andrews@technologist.com>
GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w---
?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+
G++>+++ e->++++ h! r-->+++ y?
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?XFMail.991229092033.andrews>
