From 11cd9b2de3b8ce3a73260673c5571fecbc95318f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 12 May 2003 10:55:21 +0000 Subject: 18512, modified: fix up for ${foo/\//stuf} fix --- Completion/Unix/Type/_path_files | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Type/_path_files') diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 664b0d85f..dc12c512d 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -204,7 +204,8 @@ if [[ "$pre" = [^][*?#^\|\<\>]#(\`[^\`]#\`|\$)*/* && "$compstate[quote]" != \' ] eval 'realpath=${(e)~linepath}' 2>/dev/null [[ -z "$realpath" || "$realpath" = "$linepath" ]] && return 1 pre="${pre#${linepath}}" - i="${#linepath//[^\\/]}" + i='[^/]' + i="${#linepath//$i}" orig="${orig[1,(in:i:)/][1,-2]}" donepath= prepaths=( '' ) -- cgit 1.4.1