mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +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
|
# There are more components, so skip over the next components and make a
|
||||||
# slash be added.
|
# slash be added.
|
||||||
|
|
||||||
tmp1=( ${tmp1//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} )
|
#tmp1=( ${tmp1//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} )
|
||||||
tmp2="${(M)tpre##${~skips}}"
|
tmp2="${(M)tpre##${~skips}}"
|
||||||
if [[ -n "$tmp2" ]]; then
|
if [[ -n "$tmp2" ]]; then
|
||||||
skipped="/$tmp2"
|
skipped="/$tmp2"
|
||||||
|
|
|
@ -80,12 +80,15 @@ F:regression test workers/31611
|
||||||
|
|
||||||
{
|
{
|
||||||
mkdir 'A(B)' 'A(B)/C'
|
mkdir 'A(B)' 'A(B)/C'
|
||||||
|
comptest $'cd "A(B)\t\t'
|
||||||
comptesteval 'cd "A(B)/C"'
|
comptesteval 'cd "A(B)/C"'
|
||||||
comptest $'cd ../\t'
|
comptest $'cd ../\t'
|
||||||
} always {
|
} always {
|
||||||
rmdir 'A(B)/C' 'A(B)'
|
rmdir 'A(B)/C' 'A(B)'
|
||||||
}
|
}
|
||||||
0:directory name is not a glob qualifier
|
0:directory name is not a glob qualifier
|
||||||
|
>line: {cd "A(B)/}{}
|
||||||
|
>line: {cd "A(B)/C/}{}
|
||||||
>line: {cd ../C/}{}
|
>line: {cd ../C/}{}
|
||||||
|
|
||||||
comptesteval "_tst() { compadd -U -s : -S / -I . word; compstate[to_end]= }"
|
comptesteval "_tst() { compadd -U -s : -S / -I . word; compstate[to_end]= }"
|
||||||
|
|
Loading…
Reference in a new issue