From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7768 invoked from network); 21 May 2002 07:34:23 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 21 May 2002 07:34:23 -0000 Received: (qmail 1950 invoked by alias); 21 May 2002 07:34:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17189 Received: (qmail 1939 invoked from network); 21 May 2002 07:34:13 -0000 From: Sven Wischnowsky MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15593.63582.734755.585502@wischnow.berkom.de> Date: Tue, 21 May 2002 09:33:50 +0200 To: zsh-workers@sunsite.dk Subject: PATCH: Re: _cvs problem In-Reply-To: <20020516010826.GA30495@dman.com> References: <20020516010826.GA30495@dman.com> X-Mailer: VM 6.95 under 21.5 (patch 3) "asparagus" XEmacs Lucid Clint Adams wrote: > _cvs chokes on files with spaces. > > To reproduce: > > mkdir -p test/CVS > echo "D/a b c////" > test/CVS/Entries > cd test > cvs add > > === > Seems to be happening at or before _cvs:969. Splitting of the `-g'-string in _path_files was too simple minded. Bye Sven Index: Completion/Unix/Type/_path_files =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v retrieving revision 1.16 diff -u -r1.16 _path_files --- Completion/Unix/Type/_path_files 3 May 2002 12:49:30 -0000 1.16 +++ Completion/Unix/Type/_path_files 21 May 2002 07:33:49 -0000 @@ -23,9 +23,9 @@ (( $tmp1[(I)-[/g]*] )) && haspats=yes (( $tmp1[(I)-g*] )) && gopt=yes if (( $tmp1[(I)-/] )); then - pats=( '*(-/)' ${=${(M)tmp1:#-g*}#-g} ) + pats=( '*(-/)' ${(z)${(M)tmp1:#-g*}#-g} ) else - pats=( "${(@)=${(@M)tmp1:#-g*}#-g}" ) + pats=( "${(@z)${(@M)tmp1:#-g*}#-g}" ) fi pats=( "${(@)pats:# #}" ) -- Sven Wischnowsky wischnow@berkom.de