From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13107 invoked from network); 10 Aug 2005 19:19:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Aug 2005 19:19:13 -0000 Received: (qmail 65478 invoked from network); 10 Aug 2005 19:19:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Aug 2005 19:19:05 -0000 Received: (qmail 11326 invoked by alias); 10 Aug 2005 19:18:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9282 Received: (qmail 11316 invoked from network); 10 Aug 2005 19:18:58 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Aug 2005 19:18:58 -0000 Received: (qmail 64494 invoked from network); 10 Aug 2005 19:18:58 -0000 Received: from wproxy.gmail.com (64.233.184.199) by a.mx.sunsite.dk with SMTP; 10 Aug 2005 19:18:54 -0000 Received: by wproxy.gmail.com with SMTP id i2so208092wra for ; Wed, 10 Aug 2005 12:18:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=XiLNdxrhGImdveYVc8VflgjEdeaGOzFdvkd3rVFs0SlGqsA3ccRuXanwQhzzBwRlrsN0WvtgARYcJaB3x/VNAv5PHq8Jb+JIyEXS9NcsuYmuyXo6J+fOD+J/QmhsRYbBloKB7i2o5Dqp/W18/F9N7DbvjcyvauT0gUv3n/zUx4o= Received: by 10.54.160.5 with SMTP id i5mr658209wre; Wed, 10 Aug 2005 12:18:53 -0700 (PDT) Received: by 10.54.81.7 with HTTP; Wed, 10 Aug 2005 12:18:53 -0700 (PDT) Message-ID: <7c737f3005081012187ed74a81@mail.gmail.com> Date: Wed, 10 Aug 2005 12:18:53 -0700 From: Deliverable Mail To: zsh-users@sunsite.dk Subject: rm nonexisting*; alias with parameters? Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.4 I have a log directory where different logs appear, and an alias to clear it up. I try to define patterns covering all the logs to avoid rm *, which is dangerous and asks for a confirmation. So I define all possible patterns like in an alias, rml: alias rml=3D'rm prefix1.* *.suffix2*' But when some of the patterns match nothing, zsh prints an error about that doesn't do anything. How can I change that behavior to the expected of rm -f ? While I'm on the subject of aliases, looks like zsh aliases are as weak as bash's, so when I have my lr: alias lr=3D'ls -lt | head' which I could not use with a parameter, lr , I still cannot use a parameter in zsh. In bash, made lr a function -- what the zsh function would look like? And is there a way to do it in an alias, or still not? Alexy