From owner-freebsd-stable Wed Dec 29 6:22: 5 1999 Delivered-To: freebsd-stable@freebsd.org Received: from pluto.psn.net (pluto.psn.net [207.211.58.12]) by hub.freebsd.org (Postfix) with ESMTP id 043B415642 for ; Wed, 29 Dec 1999 06:22:02 -0800 (PST) (envelope-from will@shadow.blackdawn.com) Received: from 14-100.008.popsite.net ([209.69.195.100] helo=shadow.blackdawn.com) by pluto.psn.net with esmtp (PSN Internet Service 3.12 #1) id 123Jxr-0001q0-00; Wed, 29 Dec 1999 07:20:36 -0700 Received: (from will@localhost) by shadow.blackdawn.com (8.9.3/8.9.3) id JAA75013; Wed, 29 Dec 1999 09:20:33 -0500 (EST) (envelope-from will) Message-ID: X-Mailer: XFMail 1.3.1 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199912290115.RAA71526@gndrsh.dnsmgr.net> Date: Wed, 29 Dec 1999 09:20:33 -0500 (EST) Reply-To: Will Andrews From: Will Andrews To: "Rodney W. Grimes" Subject: Re: /bin/test broken ? Cc: freebsd-stable@FreeBSD.ORG, (Peter Jeremy) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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