mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 06:49:49 +02:00
41420: "{.." wasn't check for brace expansion properly
This commit is contained in:
parent
050f752ed2
commit
a3b3f00575
@ -1,3 +1,8 @@
|
||||
2017-07-13 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 41420: Src/glob.c, Test/D09brace.ztst: "{.." wasn't checked
|
||||
properly.
|
||||
|
||||
2017-07-11 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* Marcin Mielniczuk: 41409: Completion/Unix/Command/_django:
|
||||
|
@ -2194,6 +2194,8 @@ bracechardots(char *str, convchar_t *c1p, convchar_t *c2p)
|
||||
pnext[0] != '.' || pnext[1] != '.')
|
||||
return 0;
|
||||
pnext += 2;
|
||||
if (!*pnext)
|
||||
return 0;
|
||||
if (itok(*pnext)) {
|
||||
if (*pnext == Inbrace)
|
||||
return 0;
|
||||
|
@ -112,3 +112,7 @@
|
||||
print -r left{[..]}right
|
||||
0:{char..char} ranges with tokenized characters
|
||||
>left[right left\right left]right
|
||||
|
||||
print -r {1..10}{..
|
||||
0:Unmatched braces after matched braces are left alone.
|
||||
>1{.. 2{.. 3{.. 4{.. 5{.. 6{.. 7{.. 8{.. 9{.. 10{..
|
||||
|
Loading…
Reference in New Issue
Block a user