From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11895 invoked by alias); 23 Feb 2011 02:30:51 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28794 Received: (qmail 1010 invoked from network); 23 Feb 2011 02:30:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at hightek.org does not designate permitted sender hosts) Date: Tue, 22 Feb 2011 20:30:35 -0600 From: Vincent Stemen To: zsh-workers@zsh.org Subject: Re: sh compatibility issue Message-ID: <20110223023034.GA37964@quark.hightek.org> References: <20110218103012.27fd1869@pwslap01u.europe.root.pri> <20110219230540.GA81416@stack.nl> <20110220191159.12627718@pws-pc.ntlworld.com> <4D618A11.3050406@case.edu> <20110222200259.2aab2dcc@pws-pc.ntlworld.com> <20110223010817.GA36733@quark.hightek.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Vincent Stemen On Tue, Feb 22, 2011 at 05:51:18PM -0800, Bart Schaefer wrote: > On Tuesday, February 22, 2011, Vincent Stemen wrote: > > > > I don't think it worked. ?With this patch added, the bahaviour did not > > change from the previous patch. ?Fatal error in sh mode not not in zsh > > mode. > > That's intentional. Zsh is not a POSIX shell unless you tell it to > be, so in zsh mode it behaves the way zsh always has. > > As I understand it, the patch should change the behavior of other > special builtins (in addition to exec), but only when POSIXBUILTINS is > set. Oh. OK. If that's the case, then it does appear to work as intended on BSD :-). $ /usr/bin/zsh -c 'setopt posixbuiltins; exec