Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing and quoting in a function
- X-seq: zsh-users 9109
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: globbing and quoting in a function
- Date: Tue, 19 Jul 2005 08:29:33 -0700
- In-reply-to: <20050719145955.GD3593@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <m0k6jmna5n.fsf@xxxxxxxxxx> <20050719145955.GD3593@xxxxxxxxxxxxxxxxxxxxx>
On Wed, Jul 20, 2005 at 12:59:55AM +1000, Doug Kearns wrote:
> You'll need to quote the * as well.
Or use "noglob" as a prefix, which can be done using an alias:
alias lsnew='noglob lsnew'
Then you can use "lsnew foo*" without quoting any wildcards.
(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.)
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author