From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4976 invoked from network); 28 Jun 2009 18:53:23 -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=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 28 Jun 2009 18:53:23 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 87215 invoked from network); 28 Jun 2009 18:53:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Jun 2009 18:53:15 -0000 Received: (qmail 13224 invoked by alias); 28 Jun 2009 18:53:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27067 Received: (qmail 13198 invoked from network); 28 Jun 2009 18:53:01 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 28 Jun 2009 18:53:01 -0000 Received: from QMTA03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by bifrost.dotsrc.org (Postfix) with ESMTP id 9BD328027106 for ; Sun, 28 Jun 2009 20:52:57 +0200 (CEST) Received: from OMTA18.westchester.pa.mail.comcast.net ([76.96.62.90]) by QMTA03.westchester.pa.mail.comcast.net with comcast id 9WcS1c0041wpRvQ53Wsx5d; Sun, 28 Jun 2009 18:52:57 +0000 Received: from smtp.klanderman.net ([98.217.254.247]) by OMTA18.westchester.pa.mail.comcast.net with comcast id 9Wtk1c0055M2Np63eWtkEa; Sun, 28 Jun 2009 18:53:44 +0000 Received: from lwm.klanderman.net (unknown [192.168.100.50]) by smtp.klanderman.net (Postfix) with ESMTP id 147CDB3014A for ; Sun, 28 Jun 2009 14:52:56 -0400 (EDT) Received: by lwm.klanderman.net (Postfix, from userid 500) id E74319FC61E; Sun, 28 Jun 2009 14:52:55 -0400 (EDT) From: Greg Klanderman To: zsh-workers@sunsite.dk Subject: Re: need help debugging cvs completion problem Reply-To: gak@klanderman.net Date: Sun, 28 Jun 2009 14:52:55 -0400 In-Reply-To: (Greg Klanderman's message of "Sun, 28 Jun 2009 13:49:40 -0400") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (linux) References: <19013.18790.978774.551126@gargle.gargle.HOWL> <20090627212418.36848701@pws-pc> <20090628113802.GA3707@primenet.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.94.2/9516/Sun Jun 28 20:08:45 2009 on bifrost X-Virus-Status: Clean >>>>> Greg Klanderman writes: > The directory prefix is getting removed in _cvs_existing_entries, is > it safe to just paste '$linedir' back on the front of the resulting > filenames? this seems to work: _cvs_existing_entries() { local expl match linedir realdir files disp match=() : ${PREFIX:#(#b)(*/)(*)} linedir="$match[1]" realdir=${(e)~linedir} [[ -f "$realdir"CVS/Entries ]] && disp=(${(@)${(@)${(@M)${(@f)"$(<"$realdir"CVS/Entries)"}:#/*}#/}%%/*}) files=( ${linedir}${(@)^disp} ) (( ${#disp} )) && _wanted files expl file compadd -d disp -a files } except it now breaks when 'linedir' contains a parameter substitution, presumably the whole reason for the 'realdir' logic above, because the '$' in the parameter substitution gets escaped with '\'. But presumably adding '-Q' to compadd would break completing files that contain characters that need to be escaped. Should I do that, and escape characters that need it in $files? Otherwise I'm running out of ideas; maybe I should look into why whitespace in file names was not handled before Peter's change in 2003. greg