From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13941 invoked from network); 19 Jul 2005 15:29:54 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Jul 2005 15:29:54 -0000 Received: (qmail 33806 invoked from network); 19 Jul 2005 15:29:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Jul 2005 15:29:48 -0000 Received: (qmail 13565 invoked by alias); 19 Jul 2005 15:29:42 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9109 Received: (qmail 13556 invoked from network); 19 Jul 2005 15:29:41 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Jul 2005 15:29:41 -0000 Received: (qmail 32813 invoked from network); 19 Jul 2005 15:29:41 -0000 Received: from dsl3-63-249-88-2.cruzio.com (HELO dot.blorf.net) (63.249.88.2) by a.mx.sunsite.dk with SMTP; 19 Jul 2005 15:29:35 -0000 Received: by dot.blorf.net (Postfix, from userid 1000) id 0BA1A5E5; Tue, 19 Jul 2005 08:29:34 -0700 (PDT) Date: Tue, 19 Jul 2005 08:29:33 -0700 From: Wayne Davison To: zsh-users@sunsite.dk Subject: Re: globbing and quoting in a function Message-ID: <20050719152933.GA23645@blorf.net> References: <20050719145955.GD3593@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050719145955.GD3593@localhost.localdomain> User-Agent: Mutt/1.5.9i X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Wed, Jul 20, 2005 at 12:59:55AM +1000, Doug Kearns wrote: > You'll need to quote the * as well. Or use "noglob" as a prefix, which can be done using an alias: alias lsnew='noglob lsnew' Then you can use "lsnew foo*" without quoting any wildcards. (I vaguely recall that having an alias call a function of the same name might cause a problem in some older zsh versions, but it works fine in 4.2.5.) ..wayne..