From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3160 invoked from network); 28 May 2000 17:16:52 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 May 2000 17:16:52 -0000 Received: (qmail 23092 invoked by alias); 28 May 2000 17:16:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11612 Received: (qmail 23085 invoked from network); 28 May 2000 17:16:38 -0000 From: "Bart Schaefer" Message-Id: <1000528171628.ZM24311@candle.brasslantern.com> Date: Sun, 28 May 2000 17:16:28 +0000 In-Reply-To: <20000528111017.B392@eggink3.rrz.uni-hamburg.de> Comments: In reply to Bernd Eggink "Re: Positional parameters and sourced files" (May 28, 11:10am) References: <1000528003111.ZM22806@candle.brasslantern.com> <20000528111017.B392@eggink3.rrz.uni-hamburg.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Bernd Eggink , zsh-workers@sunsite.auc.dk Subject: Re: Positional parameters and sourced files MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 28, 11:10am, Bernd Eggink wrote: } Subject: Re: Positional parameters and sourced files } } ksh behaves the same way as zsh. That's probably -why- zsh behaves that way, then. } IMHO the bash behavior is the most reasonable one. I think they're both strange. Look at what happens to zsh scripts when you put a `set a b c d e' in /etc/zshenv. (Bash doesn't have that problem because it has no init scripts that are run for non-interactive shells, but the principle is the same.) The positionals should be local, always. Unfortunately that probably breaks some expectation of old Bourne shell scripts, or some such. -- 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