From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15384 invoked from network); 7 Jun 2000 15:07:25 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Jun 2000 15:07:25 -0000 Received: (qmail 15989 invoked by alias); 7 Jun 2000 15:07:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11798 Received: (qmail 15982 invoked from network); 7 Jun 2000 15:07:15 -0000 Date: Wed, 7 Jun 2000 11:06:50 -0400 From: Clint Adams To: Sven Wischnowsky Cc: zsh-workers@sunsite.auc.dk Subject: "antecedents" [was Re: a couple of completion questions] Message-ID: <20000607110650.A10695@scowler.net> References: <200006070850.KAA13208@beta.informatik.hu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <200006070850.KAA13208@beta.informatik.hu-berlin.de>; from wischnow@informatik.hu-berlin.de on Wed, Jun 07, 2000 at 10:50:45AM +0200 > Sorry, I don't understand... what do you want to do? Okay. I want to use _arguments -A in the state switch at the bottom. Originally, install and record_avail were the same case, but when I added -A, they wouldn't complete, so I had to insert the options that had gotten the user to that state, which is why install and record_avail are two separate cases now. I want to avoid making remove, purge, status, and listfiles four separate cases, yet still retain the -A to _arguments. My last resort would probably be to define four new arrays with the short and long options and then use something like ${(P)${:-_dpkg_actions_${state}}}, but I was hoping that there was a better way.