mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-05 21:31:29 +01:00
Peter:13427: filename-quoting fix in _expand
This commit is contained in:
parent
3f862ce205
commit
8ff6a955fe
2 changed files with 9 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2001-02-02 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* Peter: 13427: Completion/Core/_expand: fix for handling quoting
|
||||
for filenames with weird characters
|
||||
|
||||
2001-02-01 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 13422: README, Completion/User/_urls, Doc/Zsh/manual.yo,
|
||||
|
|
|
|||
|
|
@ -68,7 +68,10 @@ subd=("$exp[@]")
|
|||
# Now try globbing.
|
||||
|
||||
[[ "$force" = *g* ]] || zstyle -T ":completion:${curcontext}:" glob &&
|
||||
eval 'exp=( ${~exp} ); exp=( ${exp//(#b)([][()|*?^#~<>\\=])/\\${match[1]}} )' 2>/dev/null
|
||||
eval 'exp=( ${~exp} ); 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
|
||||
|
||||
# If we don't have any expansions or only one and that is the same
|
||||
# as the original string, we let other completers run.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue