Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: alias -- do not pass args
- X-seq: zsh-users 10706
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: alias -- do not pass args
- Date: Mon, 11 Sep 2006 21:02:25 +0200
- In-reply-to: <20060911185045.GA15092@localdomain>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Operating-system: Linux 2.6.16.16 i686
- References: <20060911185045.GA15092@localdomain>
Roman Cheplyaka <roman.cheplyaka@xxxxxxxxx>:
> I want to define alias which would /not/ pass its args to program.
> E.g.
> $ alias foo='echo lol'
> $ foo a b
> should just print lol, not "lol a b". How can I do this?
Use a function for that:
[snip]
zsh% function foo() { echo bar } ; foo Hello World.
bar
[snap]
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author