zsh-users
 help / color / mirror / code / Atom feed
* globbing and quoting in a function
@ 2005-07-19 14:27 Stefan Reichör
  2005-07-19 14:59 ` Doug Kearns
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Reichör @ 2005-07-19 14:27 UTC (permalink / raw)
  To: zsh-users

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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-07-20  8:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-19 14:27 globbing and quoting in a function Stefan Reichör
2005-07-19 14:59 ` Doug Kearns
2005-07-19 15:29   ` Wayne Davison
2005-07-20  3:54     ` Bart Schaefer
2005-07-20  5:24       ` Stefan Reichör
2005-07-20  7:48         ` Bart Schaefer
2005-07-20  8:29           ` Stefan Reichör
2005-07-19 15:35   ` Stefan Reichör

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).