Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: *(@)/subdir expansion

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

  ls *(#q@)/*

Currently the qualifiers there just get ignored, so there's no

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.


Messages sorted by: Reverse Date, Date, Thread, Author