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

Re: EQUALS =command expansion



On Thu, 23 Nov 2006 23:57:06 -0500 (EST)
Atom Smasher <atom@xxxxxxxxxxx> wrote:

> but if i try to use TAB to expand "=lpr-*" it doesn't work.

It should work if you are using the new completion system
and the GLOB_COMPLETE option is set.  If it's not set,
you should still be able to complete =lpr- without the *
(* is not a standard completion syntax, it's usually used
for expansion on the command line).

>   $ ls -lh =lpr-*
>   zsh: lpr-* not found

That's not how it works.  The filename expansion "=" is performed
first, searching for the path to a file name (not a pattern).
When that's finished filename generation handles the *.
That's why they're in different sections in the manual in that
order.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php



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