From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14856 invoked from network); 23 Mar 2001 09:53:13 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Mar 2001 09:53:13 -0000 Received: (qmail 15031 invoked by alias); 23 Mar 2001 09:53:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13724 Received: (qmail 15020 invoked from network); 23 Mar 2001 09:53:05 -0000 Date: Fri, 23 Mar 2001 10:53:05 +0100 (MET) Message-Id: <200103230953.KAA07731@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.dk In-reply-to: Peter Stephenson's message of Thu, 22 Mar 2001 17:41:52 +0000 Subject: PATCH: Re: Correction of files after ~/ Peter Stephenson wrote: > Correction/approximation of filenames which begin with a `~' appears to be > broken. I think this has happened before. I'm not aware of any styles I > have that would affect this (note careful phrasing). This was dependend on the matchers one used. Complicated ones could lead _path_files to end up with the uncorrected word as an `expanded' path which made _path_files return zero... > Could somebody who understands this put some tests with leading ~'s into > the completion part of the test suite? Since this was really caused by ~ being expanded to the home directory I'm not sure how to do that. Bye Sven Index: Completion/Core/_path_files =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Core/_path_files,v retrieving revision 1.36 diff -u -r1.36 _path_files --- Completion/Core/_path_files 2001/02/13 09:23:34 1.36 +++ Completion/Core/_path_files 2001/03/23 09:52:22 @@ -364,8 +364,10 @@ else exppaths=( "$exppaths[@]" ${^tmp2}/${tpre}${tsuf} ) fi - else + elif [[ ${tpre}${tsuf} = */* ]]; then exppaths=( "$exppaths[@]" ${tpre}${tsuf} ) + + ### this once was in an `else' (not `elif') fi fi continue 2 -- Sven Wischnowsky wischnow@informatik.hu-berlin.de