From: Aaron Davies <agdavi01@louisville.edu>
To: zsh-users@sunsite.dk
Subject: Re: *(@)/subdir expansion
Date: Sat, 12 Jun 2004 01:43:32 -0400 [thread overview]
Message-ID: <70B2ED44-BC33-11D8-B393-000502631FBD@louisville.edu> (raw)
In-Reply-To: <20040608083135.GA14991@picard.franken.de>
Thomas Köhler wrote:
> Andy Isaacson wrote:
>
>> I'm suprised to find that this expansion doesn't work for me:
>>
>> % ls *(@)/dry
>> zsh: no matches found: *(@)/dry
>>
>> Am I doing something wrong, is this expected behavior, or is it a bug?
>
> You might want to try something like
>
> for i in *(@) ; do ls $i/dry 2>/dev/null ; done
Really, the correct general solution to this is to fall back on the
tool that zsh's extended glob attempts to make obsolete: GNU find.
Despite its arcane and annoying syntax, it's still occasionally useful.
In this case, you want to say
find *(@) -name dry -exec ls '{}' ';'
--
__ __
/ ) / )
/--/ __. .__ ______ / / __. , __o _ _
/ (_(_/|_/ (_(_) / (_ (__/_(_/|_\/ <__</_/_)_
next prev parent reply other threads:[~2004-06-12 13:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-07 22:44 Andy Isaacson
2004-06-08 8:31 ` Thomas Köhler
2004-06-12 5:43 ` Aaron Davies [this message]
2004-06-14 9:41 ` Peter Stephenson
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=70B2ED44-BC33-11D8-B393-000502631FBD@louisville.edu \
--to=agdavi01@louisville.edu \
--cc=zsh-users@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).