From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7085 invoked from network); 14 Sep 2000 17:43:42 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Sep 2000 17:43:42 -0000 Received: (qmail 11705 invoked by alias); 14 Sep 2000 17:43:10 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12808 Received: (qmail 11698 invoked from network); 14 Sep 2000 17:43:08 -0000 From: "Bart Schaefer" Message-Id: <1000914173545.ZM15847@candle.brasslantern.com> Date: Thu, 14 Sep 2000 17:35:45 +0000 In-Reply-To: <005101c01e6c$8e67ea50$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "RE: PATCH: "typeset -m" plays havoc" (Sep 14, 8:55pm) References: <005101c01e6c$8e67ea50$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "Andrej Borsenkow" , Subject: Re: PATCH: "typeset -m" plays havoc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 14, 8:55pm, Andrej Borsenkow wrote: } Subject: RE: PATCH: "typeset -m" plays havoc } } What happens in case of } } splat() { typeset -F -m \* } Depending on what stands in for -F, it dumps core. I just noticed that myself. } bor@itsrm2% splat () {typeset cdpath} } bor@itsrm2% splat } } If I can believe manual: } } For each remaining NAME that refers to a parameter that is set, the } name and value of the parameter are printed } } In our case cdpath is definitely set; but what we get is creation of local } cdpath. Which is what must happen, otherwise you can never create local parameters with the same names as global ones and the whole point of "local" is lost. Try a similar function in ksh or bash. } The suggested patch seems to take care of the both. It is on top of Bart's. } Peter? No, please don't apply/commit 12806. -- 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