From: "Stefan Reichör" <stefan@xsteve.at>
To: zsh-users@sunsite.dk
Cc: zsh-workers@sunsite.dk
Subject: Re: globbing and quoting in a function
Date: Wed, 20 Jul 2005 07:24:54 +0200 [thread overview]
Message-ID: <m0u0iqkq1l.fsf@msc-ge.com> (raw)
In-Reply-To: <1050720035400.ZM7204@candle.brasslantern.com>
Bart Schaefer <schaefer@brasslantern.com> 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.
next prev parent reply other threads:[~2005-07-20 5:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-19 14:27 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 [this message]
2005-07-20 7:48 ` Bart Schaefer
2005-07-20 8:29 ` Stefan Reichör
2005-07-19 15:35 ` Stefan Reichör
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0u0iqkq1l.fsf@msc-ge.com \
--to=stefan@xsteve.at \
--cc=zsh-users@sunsite.dk \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).