From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3598 invoked from network); 14 Mar 2002 14:44:15 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Mar 2002 14:44:15 -0000 Received: (qmail 22054 invoked by alias); 14 Mar 2002 14:44:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16833 Received: (qmail 22041 invoked from network); 14 Mar 2002 14:44:05 -0000 From: Sven Wischnowsky MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15504.46860.466019.358438@wischnow.berkom.de> Date: Thu, 14 Mar 2002 15:43:24 +0100 To: zsh-workers@sunsite.dk Subject: Re: Redirection completion In-Reply-To: <4539.1016116878@csr.com> References: <20020314135129.GA7723@logica.com> <4539.1016116878@csr.com> X-Mailer: VM 6.95 under 21.5 (patch 3) "asparagus" XEmacs Lucid Peter Stephenson wrote: > Oliver Kiddle wrote: > > If Peter wants to commit his change first, I'll do the merge and > > commit my change later. It is only the first line that needs any > > merging anyway. > > > > I'd be tempted to add -redirect-,<,bzip2=bzip2 too so that completion > > after bzip2 -c < and bzip2 -cd < also work. Ideally, we should stop it > > from completing options but it would still need _arguments with ! specs > > if the checks for -d and -z options are still to work. > > OK, I've done that, except I haven't done anything about option > handling. It would be better to have special services for the > redirections. I haven't worked out either whether _arguments is aware > of the options when it's completing redirections. Err... just to make sure: everyone's aware that $service is set, yes? I've put an example in _gcc. Bye Sven -- Sven Wischnowsky wischnow@berkom.de