From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8555 invoked from network); 18 Jun 2004 13:05:35 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 18 Jun 2004 13:05:35 -0000 Received: (qmail 28075 invoked from network); 18 Jun 2004 13:05:08 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jun 2004 13:05:08 -0000 Received: (qmail 6268 invoked by alias); 18 Jun 2004 13:05:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20077 Received: (qmail 6258 invoked from network); 18 Jun 2004 13:05:05 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 18 Jun 2004 13:05:02 -0000 Received: (qmail 27659 invoked from network); 18 Jun 2004 13:05:02 -0000 Received: from mail36.messagelabs.com (193.109.254.211) by a.mx.sunsite.dk with SMTP; 18 Jun 2004 13:05:00 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-19.tower-36.messagelabs.com!1087563871!7085167 X-StarScan-Version: 5.2.10; banners=-,-,- X-Originating-IP: [158.234.9.163] Received: (qmail 24514 invoked from network); 18 Jun 2004 13:04:31 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-19.tower-36.messagelabs.com with SMTP; 18 Jun 2004 13:04:31 -0000 Received: from trentino.logica.co.uk ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id i5ID4VUI010223 for ; Fri, 18 Jun 2004 14:04:31 +0100 Received: from trentino.logica.co.uk (localhost [127.0.0.1]) by trentino.logica.co.uk (Postfix) with ESMTP id 16FAE7970C6A for ; Fri, 18 Jun 2004 15:03:47 +0200 (CEST) X-VirusChecked: Checked X-StarScan-Version: 5.1.13; banners=.,-,- From: Oliver Kiddle To: Zsh workers Subject: problems completing reserved words Date: Fri, 18 Jun 2004 15:03:47 +0200 Message-ID: <21282.1087563827@trentino.logica.co.uk> X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=BAYES_50 autolearn=no version=2.63 X-Spam-Hits: 0.0 completing after disable -r results in: (eval):1: parse error near `}' Is it perhaps new that `}' and `{' can be disabled because _disable and _enable haven't been updated in a long time so they may have once worked. This could also have been caused by a change in _arguments. Or maybe they never worked. Anyway the two functions can be directly fixed with this patch. Oliver Index: Completion/Zsh/Command/_disable =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_disable,v retrieving revision 1.1 diff -u -r1.1 _disable --- Completion/Zsh/Command/_disable 2 Apr 2001 11:27:24 -0000 1.1 +++ Completion/Zsh/Command/_disable 18 Jun 2004 12:44:09 -0000 @@ -3,6 +3,6 @@ _arguments -C -s -A "-*" -S \ "(-f -r)-a[act on aliases]:*:aliases:(${(k)aliases} ${(k)galiases})" \ "(-a -r)-f[act on functions]:*:functions:(${(k)functions})" \ - "(-a -f)-r[act on reserved words]:*:reserved-words:(${(k)reswords})" \ + "(-a -f)-r[act on reserved words]:*:reserved-words:compadd -k reswords" \ '-m[treat arguments as patterns]' \ "*:builtin command:(${(k)builtins})" Index: Completion/Zsh/Command/_enable =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_enable,v retrieving revision 1.2 diff -u -r1.2 _enable --- Completion/Zsh/Command/_enable 7 Aug 2001 19:29:14 -0000 1.2 +++ Completion/Zsh/Command/_enable 18 Jun 2004 12:44:09 -0000 @@ -3,6 +3,6 @@ _arguments -C -s -A "-*" -S \ "(-f -r)-a[act on aliases]:*:aliases:(${(k)dis_aliases})" \ "(-a -r)-f[act on functions]:*:functions:(${(k)dis_functions})" \ - "(-a -f)-r[act on reserved words]:*:reserved-words:(${(k)dis_reswords})" \ + "(-a -f)-r[act on reserved words]:*:reserved-words:compadd -k dis_reswords" \ '-m[treat arguments as patterns]' \ "*:builtin command:(${(k)dis_builtins})"