From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23286 invoked from network); 26 Mar 2001 11:10:23 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Mar 2001 11:10:23 -0000 Received: (qmail 23142 invoked by alias); 26 Mar 2001 11:10:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13771 Received: (qmail 23131 invoked from network); 26 Mar 2001 11:10:14 -0000 Date: Mon, 26 Mar 2001 13:10:14 +0200 (MET DST) Message-Id: <200103261110.NAA13576@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.dk In-reply-to: Peter Stephenson's message of Sun, 25 Mar 2001 21:41:59 +0100 Subject: Re: _cpio 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@informatik.hu-berlin.de