summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-23 09:55:49 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-23 09:55:49 +0000
commit6fc50b05c450aece01983b8b91903d2fb32905d1 (patch)
treec194e767c56d59e7ac81174ce6f1f0d41489b04e /Completion
parent2849199f3ce96db38cb9003c977b5b7cc783c86a (diff)
downloadzsh-6fc50b05c450aece01983b8b91903d2fb32905d1.tar.gz
zsh-6fc50b05c450aece01983b8b91903d2fb32905d1.tar.xz
zsh-6fc50b05c450aece01983b8b91903d2fb32905d1.zip
fixlet, complicated match specs could result in incorrect words being used as possible path expansions (13724)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_path_files4
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 5aa85c706..541a883e8 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -364,8 +364,10 @@ for prepath in "$prepaths[@]"; do
 	    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