From 2a5a899a55fd2bce10efd01c75a4bec5285aa46c Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:10:10 +0000 Subject: zsh-3.1.5-pws-4 --- Functions/multicomp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Functions') diff --git a/Functions/multicomp b/Functions/multicomp index bef4e179f..c28558d95 100755 --- a/Functions/multicomp +++ b/Functions/multicomp @@ -45,13 +45,8 @@ while [[ -n "$pref" ]]; do if [[ "$head" = *[\[\(\*\?\$\~]* ]]; then wild=$head else - [[ -z "$pref" ]] && globdir= - # if path segment contains wildcards, don't add another. - if [[ "$head" = *[\[\(\*\?\$\~]* || -z "$head" ]]; then - wild=$head - else # Simulate case-insensitive globbing for ASCII characters - wild="[${(j(][))${(s())head:l}}]*" # :gs/a/[a]/ etc. + wild="[${(j(][))${(s())head:l}}]*" # :gs/a/[a]/ etc. # The following could all be one expansion, but for readability: wild=$wild:gs/a/aA/:gs/b/bB/:gs/c/cC/:gs/d/dD/:gs/e/eE/:gs/f/fF/ wild=$wild:gs/g/gG/:gs/h/hH/:gs/i/iI/:gs/j/jJ/:gs/k/kK/:gs/l/lL/ -- cgit 1.4.1