From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14029 invoked from network); 28 Feb 2000 11:54:02 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Feb 2000 11:54:02 -0000 Received: (qmail 10190 invoked by alias); 28 Feb 2000 11:53:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9902 Received: (qmail 10181 invoked from network); 28 Feb 2000 11:53:53 -0000 Date: Mon, 28 Feb 2000 12:53:50 +0100 (MET) Message-Id: <200002281153.MAA03235@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Alexandre Duret-Lutz's message of 28 Feb 2000 12:02:18 +0100 Subject: Re: _files -g and subdirectory completion Alexandre Duret-Lutz wrote: > What's happening with _files -g ? I am missing a new style ? > > ~/tmp/m1 % zsh -f > phobos% autoload -U compinit > phobos% compinit > phobos% mkdir -p foo/bar > phobos% zcat foo/ > > Nothing complete. It behaves like this with all completions > functions using _files -g. Yep. That break in _path_files already irritated me some time ago. Let's try without it... I'm awfully sorry about all this mess with file completion. Sigh. Bye Sven diff -ru ../z.old/Completion/Core/_path_files Completion/Core/_path_files --- ../z.old/Completion/Core/_path_files Mon Feb 28 12:01:23 2000 +++ Completion/Core/_path_files Mon Feb 28 12:52:20 2000 @@ -346,9 +346,13 @@ # if none of the patterns match. if [[ -z "$tpre$tsuf" && -n "$pre$suf" ]]; then - tmp1=( "$tmp2[@]" ) pfxsfx=(-S '' "$pfxsfx[@]") - break + ### Don't remember what the break was good for. We explicitly + ### execute this only when there are no matches in the directory, + ### so why continue? + ### + ### tmp1=( "$tmp2[@]" ) + ### break elif [[ "$haspats" = no && -z "$tpre$tsuf" && "$pre" = */ && -z "$suf" ]]; then PREFIX="${opre}" -- Sven Wischnowsky wischnow@informatik.hu-berlin.de