Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing and quoting in a function
- X-seq: zsh-users 9112
- From: Stefan Reichör <stefan@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: globbing and quoting in a function
- Date: Wed, 20 Jul 2005 07:24:54 +0200
- Cancel-lock: sha1:CC14z7APyGSNQRbFtddqDuqqcuI=
- Cc: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <m0k6jmna5n.fsf@xxxxxxxxxx> <20050719145955.GD3593@xxxxxxxxxxxxxxxxxxxxx> <20050719152933.GA23645@xxxxxxxxx> <1050720035400.ZM7204@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:
> On Jul 19, 8:29am, Wayne Davison wrote:
> } Subject: Re: globbing and quoting in a function
> }
> } alias lsnew='noglob lsnew'
> }
> } (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.)
>
> The "problem" is still there. See the last few paragraphs of FAQ
> question 2.3.
So my question is still open:
Consider the following command:
ls -tr -dl *(om[1,30])
Now I would like to create an alias/or a function/or whatever to make
the * variable.
I'd like to call:
lsnew *
lsnew a*
Is there an easy way to do it in zsh?
The only idea that I have at the moment is to create a script on the
fly and execute it.
Other ideas?
Stefan.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author