From 6fc50b05c450aece01983b8b91903d2fb32905d1 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 23 Mar 2001 09:55:49 +0000 Subject: fixlet, complicated match specs could result in incorrect words being used as possible path expansions (13724) --- ChangeLog | 6 ++++++ Completion/Core/_path_files | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 53cd7f1c6..64641e1b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-03-23 Sven Wischnowsky + + * 13724: Completion/Core/_path_files: fixlet, complicated + match specs could result in incorrect words being used as + possible path expansions + 2001-03-22 Peter Stephenson * 13676: Completion/User/_mh: some tweaks for nmh. 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 -- cgit v1.2.3-70-g09d2