From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5888 invoked from network); 14 Sep 2000 15:42:51 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Sep 2000 15:42:51 -0000 Received: (qmail 28284 invoked by alias); 14 Sep 2000 15:42:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12804 Received: (qmail 28276 invoked from network); 14 Sep 2000 15:42:12 -0000 From: "Bart Schaefer" Message-Id: <1000914154206.ZM12447@candle.brasslantern.com> Date: Thu, 14 Sep 2000 15:42:06 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: PATCH: "typeset -m" plays havoc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Don't try this: zsh% splat() { typeset -m \* } zsh% splat The result is that all non-readonly/non-special parameters get stomped on, which leaves zsh in a pretty sorry state. The behavior up to 3.1.5 or so was that `-m' implied the equivalent of `-g', so I think the following is the most expedient patch. Peter? Index: Src/builtin.c =================================================================== @@ -1942,6 +1942,7 @@ /* With the -m option, treat arguments as glob patterns */ if (ops['m']) { + on &= ~PM_LOCAL; while ((asg = getasg(*argv++))) { LinkList pmlist = newlinklist(); LinkNode pmnode; -- 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