From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2946 invoked from network); 12 Dec 1997 19:35:33 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 12 Dec 1997 19:35:33 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id OAA13943; Fri, 12 Dec 1997 14:22:50 -0500 (EST) Resent-Date: Fri, 12 Dec 1997 14:18:56 -0500 (EST) From: Andrew Main Message-Id: <199712121919.TAA21800@taos.demon.co.uk> Subject: Re: zsh lists being used for spam-gathering? To: sweth@astaroth.nit.gwu.edu (Sweth Chandramouli) Date: Fri, 12 Dec 1997 19:19:22 +0000 (GMT) Cc: zsh-users@math.gatech.edu In-Reply-To: <19971212134934.13866@astaroth.nit.gwu.edu> from "Sweth Chandramouli" at Dec 12, 97 01:49:34 pm X-Loop: zefram@tao.co.uk X-Headers: in preparation X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"4cpRI1.0.gN3.WuOaq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1195 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Sweth Chandramouli wrote: > i've been playing recently with the parameter expansion features of ls ls doesn't do any parameter expansion. >in zsh, and have been totally blown away by them. as far as i can tell, they do >almost everything that find can do I suppose you must be talking about zsh globbing? >using them (in backquotes) as the input for a for-do loop), I'm not sure precisely what you mean here, but if you're doing something like for f in `ls *(wibble)` then you should change it to for f in *(wibble) which saves a process, and a pipe, and will handle special characters properly. >the faster execution of the ls verison be offset by the time to load zsh if i >were to make all of my ksh scriptfiles into zsh verisons instead? Not if you link zsh statically and set its sticky bit. Really, with demand-loading, particularly if you use zsh's module feature (3.1+), there shouldn't be a great deal of difference. I suggest you experiment. -zefram