From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7093 invoked from network); 1 Mar 2003 18:08:26 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 1 Mar 2003 18:08:26 -0000 Received: (qmail 18410 invoked by alias); 1 Mar 2003 18:08:02 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5954 Received: (qmail 18398 invoked from network); 1 Mar 2003 18:08:02 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 1 Mar 2003 18:08:02 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.233.231] by sunsite.dk (MessageWall 1.0.8) with SMTP; 1 Mar 2003 18:8:1 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h21I80800804 for zsh-users@sunsite.dk; Sat, 1 Mar 2003 10:08:00 -0800 From: "Bart Schaefer" Message-Id: <1030301180800.ZM803@candle.brasslantern.com> Date: Sat, 1 Mar 2003 18:08:00 +0000 In-Reply-To: <86llzzl8s1.fsf@gic.mteege.de> Comments: In reply to Matthias Teege "Aliases with spaces?" (Mar 1, 10:45am) References: <86llzzl8s1.fsf@gic.mteege.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: Aliases with spaces? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 1, 10:45am, Matthias Teege wrote: > > is it possible to define a alias like "foo -r"=programm? It's possible to define it, but it won't do anything useful. To accomplish what you probably mean, you'd need something like: foo() { case $1 in (-r) shift; programm $*;; (*) command foo $*;; esac }