From 48f36784a808857af9b6450263c1454195433aaf Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Fri, 9 Dec 2022 19:21:45 -0800 Subject: 51047: fix quoting of completion matches when _canonical_paths -N option is used --- Completion/Unix/Type/_canonical_paths | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Completion') 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 -- cgit 1.4.1