From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8900 invoked from network); 30 Jul 2001 01:35:56 -0000 Received: from unknown (HELO sunsite.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Jul 2001 01:35:56 -0000 Received: (qmail 12068 invoked by alias); 30 Jul 2001 01:35:26 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15520 Received: (qmail 12045 invoked from network); 30 Jul 2001 01:35:20 -0000 From: Bart Schaefer Message-Id: <1010730013445.ZM29134@candle.brasslantern.com> Date: Mon, 30 Jul 2001 01:34:45 +0000 In-Reply-To: <20010729220708.8256314291@pwstephenson.fsnet.co.uk> Comments: In reply to Peter Stephenson "Re: Enhanced shell" (Jul 29, 11:07pm) References: <20010729220708.8256314291@pwstephenson.fsnet.co.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.dk Subject: Re: Enhanced shell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 29, 11:07pm, Peter Stephenson wrote: } Subject: Re: Enhanced shell } } Zefram wrote: } > Peter Stephenson wrote: } > >emulate builtin } > } > We should only standardise "emulate posix_v2" as a way of specifying } > "this is written for the enhanced shell standard". Then future } > revisions of the standard get to add new permitted arguments to emulate. } > Without an emulate command in a script, the shell has to behave in a } > manner compatible with the original POSIX. } } Hmm. Zsh obviously doesn't, you have to trick it some other way. I should think that "has to behave in manner compatible with POSIX" would apply only if the shell actually advertised itself under a standardized name, e.g., "sh". Should there be a standardized command-line option that is equivalent to `emulate posix_v2'? The only one available seems to be -z ... I don't know if that already has a meaning in ksh; it doesn't yet in bash2. } > >? =cmd? } > } > With cleaned-up semantics, yes. It shouldn't be doing alias expansion. } } Yes, I'm not sure how long that's been there, and I don't think it's all } that useful It is, occasionally, extremely annoying, as one can't do [[ -x =cmd ]] without getting syntax errors when cmd happens to be an alias. On the other hand, if cmd actually isn't found, that's an abortive error too. Anyway, it appears to have gone in in late 2.4.xxx or sometime in 2.5, as it is not in the version 2.4 sources I have and it's not mentioned in the ChangeLog.3.0 file anywhere. 2.5 always was the mutant zsh from outer space (no offense to those who worked on it; they meant well). -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net