From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21426 invoked from network); 3 May 1999 00:35:02 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 May 1999 00:35:02 -0000 Received: (qmail 21690 invoked by alias); 3 May 1999 00:34:56 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6187 Received: (qmail 21683 invoked from network); 3 May 1999 00:34:55 -0000 From: "Bart Schaefer" Message-Id: <990502173444.ZM11144@candle.brasslantern.com> Date: Sun, 2 May 1999 17:34:44 -0700 In-Reply-To: <990502165200.ZM10954@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: User installation script for new completion" (May 2, 4:52pm) References: <9905021403.AA44254@ibmth.df.unipi.it> <990502165200.ZM10954@candle.brasslantern.com> X-Mailer: Z-Mail (4.0b.820 20aug96) To: Peter Stephenson , zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: User installation script for new completion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 2, 4:52pm, Bart Schaefer wrote: } Subject: Re: User installation script for new completion } } You don't mean this, do you? } } typeset -A options } options=($(setopt kshoptionprint;setopt)) } [[ -o kshoptionprint ]] || options[kshoptionprint]=off } [[ -o monitor ]] && options[monitor]=on } [[ -o zle ]] && options[zle]=on } } for i in ${(k)options} } do case $options[$i] in } on) setopt $i;; } off) unsetopt $i;; } esac done Even better: unsetopt ${(k)options[(R)off]} no${(k)^options[(R)on]} -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com