From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6294 invoked from network); 5 May 2000 13:33:13 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 May 2000 13:33:13 -0000 Received: (qmail 10452 invoked by alias); 5 May 2000 13:33:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11194 Received: (qmail 10435 invoked from network); 5 May 2000 13:33:01 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Peter Stephenson" , "Zsh hackers list" Subject: PATCH:RE: Let's do it RE: Should we backup this change? RE: Modifiersubstitutions. Date: Fri, 5 May 2000 17:32:58 +0400 Message-ID: <001701bfb696$6d2abbd0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0018_01BFB6B7.F43C5BD0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <0FU100IKILLHRZ@la-la.cambridgesiliconradio.com> This is a multi-part message in MIME format. ------=_NextPart_000_0018_01BFB6B7.F43C5BD0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit > > I'm quite happy to remove it which is easy. Currently > there's no simple > replacement in the case of _configure, however, because (#s) > doesn't get > tokenized (the `#' didn't need to be, it was always > recognised, hence the > need for quoting). This would require the -s option to > _arguments to do > some kind of globsubst thing, which may or may not be > desirable. I haven't > looked for any other uses of this feature. > That's because I used wrong syntax in _arguments (_long_options at the time of writing). This patch gets it right and replaces # with (#s), that also works. Patch attached. -andrej ------=_NextPart_000_0018_01BFB6B7.F43C5BD0 Content-Type: application/octet-stream; name="anchor.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="anchor.patch" --- Completion/Base/_arguments Wed May 3 16:16:06 2000=0A= +++ /home/bor/.zsh.d/completion/_arguments Fri May 5 17:26:55 2000=0A= @@ -82,7 +82,7 @@=0A= # ... and add "same" options=0A= =0A= while (( $#sopts )); do=0A= - lopts=3D( $lopts ${lopts/$sopts[1]/$sopts[2]} )=0A= + lopts=3D( $lopts ${lopts/$~sopts[1]/$sopts[2]} )=0A= shift 2 sopts=0A= done=0A= =0A= --- Completion/User/_configure Mon Aug 30 14:08:26 1999=0A= +++ /home/bor/.zsh.d/completion/_configure Fri May 5 17:27:49 2000=0A= @@ -1,9 +1,9 @@=0A= #compdef configure=0A= =0A= _arguments -- -i '(--(disable|enable)-FEATURE* = --(with|without)-PACKAGE*)' \=0A= - -s '(#--disable- --enable-=0A= - #--enable- --disable-=0A= - #--with- --without-=0A= - #--without- --with-)' \=0A= + -s '((#s)--disable- --enable-=0A= + (#s)--enable- --disable-=0A= + (#s)--with- --without-=0A= + (#s)--without- --with-)' \=0A= '*=3D(E|)PREFIX*:prefix directory:_files -/' \=0A= '*=3DPROGRAM*:program:_command_names -e'=0A= ------=_NextPart_000_0018_01BFB6B7.F43C5BD0--