From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13925 invoked from network); 14 Oct 2008 15:06:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Oct 2008 15:06:49 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 95848 invoked from network); 14 Oct 2008 15:06:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Oct 2008 15:06:18 -0000 Received: (qmail 14621 invoked by alias); 14 Oct 2008 15:06:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25895 Received: (qmail 14581 invoked from network); 14 Oct 2008 15:05:55 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 14 Oct 2008 15:05:55 -0000 Received: from mx1.mirz.uni-jena.de (mx1.mirz.uni-jena.de [141.35.14.220]) by bifrost.dotsrc.org (Postfix) with ESMTP id E06AB80524C2 for ; Tue, 14 Oct 2008 17:05:44 +0200 (CEST) Received: from pax08e3.mipool.uni-jena.de (pax08e3.mipool.uni-jena.de [141.35.13.46]) by mx1.mirz.uni-jena.de (Postfix) with ESMTP id 6102E326D8C for ; Tue, 14 Oct 2008 17:05:44 +0200 (CEST) Received: from informatik.uni-jena.de (ppc214.mipool.uni-jena.de [141.35.13.114]) by pax08e3.mipool.uni-jena.de (8.13.8/8.13.8) with SMTP id m9EF5XSE427481 for ; Tue, 14 Oct 2008 17:05:33 +0200 (CEST) Received: by informatik.uni-jena.de (sSMTP sendmail emulation); Tue, 14 Oct 2008 17:05:33 +0200 Date: Tue, 14 Oct 2008 17:01:44 +0200 From: =?iso-8859-1?Q?J=F6rg?= Sommer To: zsh-workers@sunsite.dk Subject: Re: [PATCH] Quote components before using it is pattern Message-ID: <20081014150144.GA3836@alea.gnuu.de> References: <1223938893-2537-1-git-send-email-joerg@alea.gnuu.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <1223938893-2537-1-git-send-email-joerg@alea.gnuu.de> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.92.1/8423/Tue Oct 14 14:36:14 2008 on bifrost X-Virus-Status: Clean --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, > A component might contain a character active in patterns, like * or (). > Take for example the path /tmp/foobar). Passing this and /tmp/foo123 as a > completion to _multi_parts results in an error: > > _multi_parts:147: bad pattern: (foo123|foobar))* > > The characters in the temporary variable tmp1 must be quote, before the > pattern is build with them. Here is a simple test that shows the error in the old version: % compdef '_multi_parts -- / mpcompletions' mptest % mpcompletions=3D( a/foo\) a/f123 ) % mptest a/ _multi_parts:147: bad pattern: (foo)|f123)* Bye, J=F6rg. --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkj0tFcACgkQwe0mZwH1VIBRVQCePObEy6XYxfX7NTs0fQjA0tTj tFEAoKRtAUHh5BnXhy/5laxiXX14T5xQ =qQUW -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--