From a39613fdc91dfd91f73101335a3432f0325aa100 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 16 Apr 2002 14:54:15 +0000 Subject: users/4836: make _path_files use match specs from the matcher style when calling compfiles --- ChangeLog | 4 ++++ Completion/Unix/Type/_path_files | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 70eec8466..18fc5e83e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2002-04-16 Sven Wischnowsky + * users/4836: Completion/Unix/Type/_path_files: make + _path_files use match specs from the matcher style when calling + compfiles + * 16991: Completion/Base/Utility/_values: make _values not use -Q diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index cd18b6b25..32bf51fef 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -331,11 +331,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