Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
globbing and quoting in a function
- X-seq: zsh-users 9107
- From: Stefan Reichör <stefan@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: globbing and quoting in a function
- Date: Tue, 19 Jul 2005 16:27:32 +0200
- Cancel-lock: sha1:aORVjFWwwHLicl3j2sOXml5R830=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxxx>
Hi!
I use the following alias to show the last 30 files changed:
alias lsnew='ls -tr -dl *(om[1,30])'
Now I want to convert it to a function to specify the '*' as
parameter:
I tried the following, but the $1 is not combined with the glob
modifier.
function lsnew () {
ls -tr -dl $1(om[1,30])
}
So is there a way to make 'lsnew a*' work?
Stefan.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author