diff options
| author | Bart Schaefer <schaefer@zsh.org> | 2022-12-09 19:21:45 -0800 |
|---|---|---|
| committer | Bart Schaefer <schaefer@zsh.org> | 2022-12-09 19:21:45 -0800 |
| commit | 48f36784a808857af9b6450263c1454195433aaf (patch) | |
| tree | 041b2b2f122264cfa9d7b8e0ea4bee0dfbba9644 /Completion/Unix | |
| parent | 51144, 51146: vcs_info git: stg: Extract patch descriptions (diff) | |
| download | zsh-48f36784a808857af9b6450263c1454195433aaf.tar zsh-48f36784a808857af9b6450263c1454195433aaf.tar.gz zsh-48f36784a808857af9b6450263c1454195433aaf.tar.bz2 zsh-48f36784a808857af9b6450263c1454195433aaf.tar.lz zsh-48f36784a808857af9b6450263c1454195433aaf.tar.xz zsh-48f36784a808857af9b6450263c1454195433aaf.tar.zst zsh-48f36784a808857af9b6450263c1454195433aaf.zip | |
51047: fix quoting of completion matches when _canonical_paths -N option is used
Diffstat (limited to 'Completion/Unix')
| -rw-r--r-- | Completion/Unix/Type/_canonical_paths | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_canonical_paths b/Completion/Unix/Type/_canonical_paths index a8fbbb524..1444bc165 100644 --- a/Completion/Unix/Type/_canonical_paths +++ b/Completion/Unix/Type/_canonical_paths @@ -42,7 +42,8 @@ _canonical_paths_add_paths () { # ### Ideally, this codepath would do what the 'if' above does, # ### but telling compadd to pretend the "word on the command line" # ### 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 for subdir in $expref?*(@); do |
