Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: *(@)/subdir expansion
- X-seq: zsh-users 7541
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: *(@)/subdir expansion
- Date: Mon, 14 Jun 2004 10:41:21 +0100
- In-reply-to: "Aaron Davies"'s message of "Sat, 12 Jun 2004 01:43:32 EDT." <70B2ED44-BC33-11D8-B393-000502631FBD@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Aaron Davies wrote:
> 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 '{}' ';'
It occurs to me that with the unambiguous (#q...) syntax for qualifiers
with the extendedglob option set, it would be possible to allow things
like
ls *(#q@)/*
Currently the qualifiers there just get ignored, so there's no
ambiguity.
I haven't looked at the code and don't know if it would be useful enough
to justify the effort. It's not particularly readable!
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author