From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27545 invoked from network); 20 Jul 2005 05:31:20 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Jul 2005 05:31:20 -0000 Received: (qmail 89184 invoked from network); 20 Jul 2005 05:31:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Jul 2005 05:31:14 -0000 Received: (qmail 2565 invoked by alias); 20 Jul 2005 05:31:07 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9112 Received: (qmail 2555 invoked from network); 20 Jul 2005 05:31:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Jul 2005 05:31:07 -0000 Received: (qmail 88130 invoked from network); 20 Jul 2005 05:31:07 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 20 Jul 2005 05:31:03 -0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Dv7AL-0005vz-KA for zsh-users@sunsite.dk; Wed, 20 Jul 2005 07:30:45 +0200 Received: from 194.96.178.23 ([194.96.178.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jul 2005 07:30:45 +0200 Received: from stefan by 194.96.178.23 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jul 2005 07:30:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Stefan =?iso-8859-1?Q?Reich=F6r?= Subject: Re: globbing and quoting in a function Date: Wed, 20 Jul 2005 07:24:54 +0200 Message-ID: References: <20050719145955.GD3593@localhost.localdomain> <20050719152933.GA23645@blorf.net> <1050720035400.ZM7204@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 194.96.178.23 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:CC14z7APyGSNQRbFtddqDuqqcuI= Sender: news Cc: zsh-workers@sunsite.dk 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=BAYES_00,RCVD_BY_IP, RCVD_NUMERIC_HELO autolearn=no version=3.0.4 Bart Schaefer writes: > On Jul 19, 8:29am, Wayne Davison wrote: > } Subject: Re: globbing and quoting in a function > } > } alias lsnew='noglob lsnew' > } > } (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.) > > The "problem" is still there. See the last few paragraphs of FAQ > question 2.3. So my question is still open: Consider the following command: ls -tr -dl *(om[1,30]) Now I would like to create an alias/or a function/or whatever to make the * variable. I'd like to call: lsnew * lsnew a* Is there an easy way to do it in zsh? The only idea that I have at the moment is to create a script on the fly and execute it. Other ideas? Stefan.