From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13216 invoked from network); 23 Jul 1999 08:29:57 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Jul 1999 08:29:57 -0000 Received: (qmail 11730 invoked by alias); 23 Jul 1999 08:29:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7257 Received: (qmail 11723 invoked from network); 23 Jul 1999 08:29:48 -0000 Message-Id: <9907230758.AA41461@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: PATCH: 3.1.6-test-2: _parameters Date: Fri, 23 Jul 1999 09:58:50 +0200 From: Peter Stephenson This tidies up _parameters a bit. I'd have liked to use something like if zmodload -e parameter; then compadd "$@" - ${(k)parameters} return fi but then there's no way of getting rid of local parameters, which is a shame. --- Completion/Core/_parameters~ Fri Jun 4 15:18:48 1999 +++ Completion/Core/_parameters Fri Jul 23 09:55:38 1999 @@ -4,4 +4,4 @@ # extra options of compadd. It completes only non-local parameters. All # arguments are given to compadd. -compadd "$@" - "${(@)${(@)${(@)${(@f)$(typeset)}:#*local *\=*}%%\=*}##* }" +compadd "$@" - ${${${(f)"$(typeset +)"}:#*local *}##* } -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy