From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10975 invoked from network); 2 Aug 2000 03:54:14 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Aug 2000 03:54:14 -0000 Received: (qmail 16579 invoked by alias); 2 Aug 2000 03:54:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12474 Received: (qmail 16571 invoked from network); 2 Aug 2000 03:54:03 -0000 From: "Bart Schaefer" Message-Id: <1000802035353.ZM31040@candle.brasslantern.com> Date: Wed, 2 Aug 2000 03:53:53 +0000 In-Reply-To: <20000802003707.A12849@thelonious.new.ox.ac.uk> Comments: In reply to Adam Spiers "Re: PATCH: completion caching layer" (Aug 2, 12:37am) References: <200007270800.KAA15656@beta.informatik.hu-berlin.de> <20000801173152.A9212@thelonious.new.ox.ac.uk> <1000801170332.ZM30820@candle.brasslantern.com> <20000802003707.A12849@thelonious.new.ox.ac.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: Adam Spiers , zsh-workers@sunsite.auc.dk Subject: Re: PATCH: completion caching layer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 2, 12:37am, Adam Spiers wrote: } > } > while (($# > 1)); do } > shift } > ${(P)=1:+typeset $1} } > done > "$_cache_dir/$_cache_ident" } > } > would be more accurate? } } Is that better than what you suggested via private mail? No, it's not. This: } > typeset +g "$@[2,-1]" > "$_cache_dir/$_cache_ident" Is probably the most efficient answer, but it doesn't skip the readonly variables, which the longer suggestion the private message did. -- 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