mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 17:24:50 +01:00
32186: fix bad backreference; handle glob patterns with backslashed quotes
This commit is contained in:
parent
083328e697
commit
9e4468d38d
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-12-28 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 32186: Completion/Base/Completer/_expand: fix bad backreference;
|
||||
handle glob patterns that include backslashed quote characters
|
||||
|
||||
2013-12-26 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* unposted (cf. Jun Takimoto: 32184): Test/comptest,
|
||||
|
|
|
@ -103,8 +103,8 @@ subd=("$exp[@]")
|
|||
# Now try globbing.
|
||||
|
||||
[[ "$force" = *g* ]] || zstyle -T ":completion:${curcontext}:" glob &&
|
||||
eval 'exp=( ${~exp//(#b)\\[
|
||||
]/$match[1]} ); exp=( ${(q)exp} )' 2>/dev/null
|
||||
eval 'exp=( ${~exp//(#b)\\([ \"'"\'"'
|
||||
])/$match[1]} ); exp=( ${(q)exp} )' 2>/dev/null
|
||||
|
||||
### Don't remember why we once used this instead of the (q) above.
|
||||
# eval 'exp=( ${~exp} ); exp=( ${exp//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} )' 2>/dev/null
|
||||
|
|
Loading…
Reference in a new issue