Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _cpio
- X-seq: zsh-workers 13771
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: _cpio
- Date: Mon, 26 Mar 2001 13:10:14 +0200 (MET DST)
- In-reply-to: Peter Stephenson's message of Sun, 25 Mar 2001 21:41:59 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> Why do I need the * before the destination directory completion for -p? It
> should work with a 1 or just the bare colon, but for some reason it doesn't
> for me.
Because in that call to _arguments there is no description for the -p
option, so it thinks that is the first (and then-only) argument.
This can be fixed by telling _arguments the options it has to expect
but not to complete, using the '!-p' syntax. Alternatively one could
use -A '-*' to say that all unknown string beginning with a hyphen are
to be `ignored' there.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author