mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-06-11 07:08:07 +02:00
51047: fix quoting of completion matches when _canonical_paths -N option is used
This commit is contained in:
parent
510df60dd1
commit
48f36784a8
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2022-12-09 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 51047: Completion/Unix/Type/_canonical_paths: fix quoting
|
||||||
|
of completion matches when _canonical_paths -N option is used
|
||||||
|
|
||||||
2022-12-09 Daniel Shahaf <d.s@daniel.shahaf.name>
|
2022-12-09 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
* 51144, 51146:
|
* 51144, 51146:
|
||||||
|
@ -187,7 +192,7 @@
|
||||||
* 50418: Src/zsh_system.h, configure.ac: use setenv(3)/getenv(3)
|
* 50418: Src/zsh_system.h, configure.ac: use setenv(3)/getenv(3)
|
||||||
on newer macOS
|
on newer macOS
|
||||||
|
|
||||||
2022-07-16 Bart Schaefer <schaefer@Macadamia>
|
2022-07-16 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
* users/27852: Completion/Unix/Command/_python: Make a local copy
|
* users/27852: Completion/Unix/Command/_python: Make a local copy
|
||||||
of $_compskip to avoid propagating outward any changes by _normal
|
of $_compskip to avoid propagating outward any changes by _normal
|
||||||
|
|
|
@ -42,7 +42,8 @@ _canonical_paths_add_paths () {
|
||||||
# ### Ideally, this codepath would do what the 'if' above does,
|
# ### Ideally, this codepath would do what the 'if' above does,
|
||||||
# ### but telling compadd to pretend the "word on the command line"
|
# ### but telling compadd to pretend the "word on the command line"
|
||||||
# ### is ${"the word on the command line"/$origpref/$canpref}.
|
# ### is ${"the word on the command line"/$origpref/$canpref}.
|
||||||
matches+=(${${(M)files:#$canpref*}/$canpref/$origpref})
|
# ### The following approximates that.
|
||||||
|
matches+=(${(q)${(M)files:#$canpref*}/$canpref/$origpref})
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for subdir in $expref?*(@); do
|
for subdir in $expref?*(@); do
|
||||||
|
|
Loading…
Reference in a new issue