1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-29 16:25:35 +01:00

39757 plus test: Fix completion under parenthetical directory names, broken in 39412

This commit is contained in:
Daniel Shahaf 2016-11-23 07:39:16 +00:00
parent 53e6b12bdf
commit eccb7471b5
2 changed files with 4 additions and 1 deletions

View file

@ -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"

View file

@ -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]= }"