From 2603a2d2b7cacc59a990acd58d2269acf45bb2c5 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 16 Apr 2002 08:27:44 +0000 Subject: make _path_files use match specs from the matcher style when calling compfiles (users/4836) --- Completion/Unix/Type/_path_files | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion/Unix/Type/_path_files') diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index b7a742596..aa9d87df1 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -335,11 +335,11 @@ for prepath in "$prepaths[@]"; do tmp2=( "$tmp1[@]" ) if [[ "$tpre$tsuf" = */* ]]; then - compfiles -P$cfopt tmp1 accex "$skipped" "$_matcher" "$sdirs" fake + compfiles -P$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]" "$sdirs" fake elif [[ "$sopt" = *[/f]* ]]; then - compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher" "$sdirs" fake "$pats[@]" + compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]" "$sdirs" fake "$pats[@]" else - compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher" '' fake "$pats[@]" + compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]" '' fake "$pats[@]" fi tmp1=( $~tmp1 ) -- cgit 1.4.1