From b6f8ff697ff4583983a7e8818202191e14825a57 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 5 Nov 1999 09:29:52 +0000 Subject: manual/8562 --- Completion/Core/_path_files | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 6f21ea6ef..077c2608b 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -210,10 +210,15 @@ for prepath in "$prepaths[@]"; do # Get the matching files by globbing. if [[ "$tpre$tsuf" = */* ]]; then - tmp1=( ${^tmp1}*(-/) ) + tmp2=( ${^tmp1}*(-/) ) + [[ ! -o globdots && "$PREFIX" = .* ]] && + tmp2=( "$tmp1[@]" ${^tmp1}.*(-/) ) else - tmp1=( ${^tmp1}${^~pats} ) + tmp2=( ${^tmp1}${^~pats} ) + [[ ! -o globdots && "$PREFIX" = .* ]] && + tmp2=( "$tmp1[@]" ${^tmp1}.${^~pats} ) fi + tmp1=( "$tmp2[@]" ) if [[ -n "$PREFIX$SUFFIX" ]]; then # See which of them match what's on the line. -- cgit 1.4.1