diff options
-rw-r--r-- | Completion/Unix/Type/_path_files | 2 | ||||
-rw-r--r-- | Test/Y01completion.ztst | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 0d36b5487..32942d7a7 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -594,7 +594,7 @@ for prepath in "$prepaths[@]"; do # There are more components, so skip over the next components and make a # slash be added. - tmp1=( ${tmp1//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} ) + #tmp1=( ${tmp1//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} ) tmp2="${(M)tpre##${~skips}}" if [[ -n "$tmp2" ]]; then skipped="/$tmp2" diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst index 7d8d70d8e..113a45076 100644 --- a/Test/Y01completion.ztst +++ b/Test/Y01completion.ztst @@ -80,12 +80,15 @@ F:regression test workers/31611 { mkdir 'A(B)' 'A(B)/C' + comptest $'cd "A(B)\t\t' comptesteval 'cd "A(B)/C"' comptest $'cd ../\t' } always { rmdir 'A(B)/C' 'A(B)' } 0:directory name is not a glob qualifier +>line: {cd "A(B)/}{} +>line: {cd "A(B)/C/}{} >line: {cd ../C/}{} comptesteval "_tst() { compadd -U -s : -S / -I . word; compstate[to_end]= }" |