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:
parent
53e6b12bdf
commit
eccb7471b5
2 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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]= }"
|
||||
|
|
Loading…
Reference in a new issue