From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6070 invoked from network); 17 Sep 2001 16:07:49 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Sep 2001 16:07:49 -0000 Received: (qmail 6107 invoked by alias); 17 Sep 2001 16:07:32 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4232 Received: (qmail 6092 invoked from network); 17 Sep 2001 16:07:30 -0000 From: Bart Schaefer Message-Id: <1010917160600.ZM5905@candle.brasslantern.com> Date: Mon, 17 Sep 2001 16:06:00 +0000 In-Reply-To: <28827.1000741112@csr.com> Comments: In reply to Peter Stephenson "Re: retrieving invocation arguments" (Sep 17, 4:38pm) References: <28827.1000741112@csr.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk (Zsh users list) Subject: Re: retrieving invocation arguments MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 17, 4:38pm, Peter Stephenson wrote: } Subject: Re: retrieving invocation arguments } } Bart Schaefer wrote: } > ## begin saveopts } > emulate -L zsh # This takes care of ksharrays et al. } } It also screws everything up completely, appearing at that point. That's } why I tried to do the minimum, saving the options to an ordinary array, } first. Right, sorry, I noticed that just after I'd sent the message. I think actually that the "emulate" could just be discarded entirely from my version. All the joins and splits are explicit so shwordsplit doesn't matter, pattern matching with (...|...) works even with kshglob, and there are no ordinary arrays to be affected by ksharrays. -- 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