Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Aliases with spaces?
- X-seq: zsh-users 5954
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Aliases with spaces?
- Date: Sat, 1 Mar 2003 18:08:00 +0000
- In-reply-to: <86llzzl8s1.fsf@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <86llzzl8s1.fsf@xxxxxxxxxxxxx>
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
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author