about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2024-06-08 17:49:54 +0200
committerMikael Magnusson <mikachu@gmail.com>2024-06-08 17:52:59 +0200
commit9a79a60c90ca0001f1d792dc01c0da0dcf179668 (patch)
treeda31e949595e11735f8770ac967c5778d0c386ea /Completion
parent9dcaf78997508f45105f11a28932fcb6b113d27e (diff)
downloadzsh-9a79a60c90ca0001f1d792dc01c0da0dcf179668.tar.gz
zsh-9a79a60c90ca0001f1d792dc01c0da0dcf179668.tar.xz
zsh-9a79a60c90ca0001f1d792dc01c0da0dcf179668.zip
52946: Revert "Handle completer filenames with funny characters in them"
This reverts commit 88f47569030b12345aee3bd857e424351ee61726.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/compdump6
-rw-r--r--Completion/compinit4
2 files changed, 5 insertions, 5 deletions
diff --git a/Completion/compdump b/Completion/compdump
index 5af5174f1..6daf92f9f 100644
--- a/Completion/compdump
+++ b/Completion/compdump
@@ -113,7 +113,7 @@ integer _i=5
 print -n autoload -Uz >& $_d_fd
 while (( $#_d_als )); do
   if (( ! $+_compautos[$_d_als[1]] )); then
-    print -rn " ${(q-)_d_als[1]}"
+    print -n " $_d_als[1]"
     if (( ! --_i && $#_d_als > 1 )); then
       _i=5
       print -n ' \\\n           '
@@ -126,13 +126,13 @@ print >& $_d_fd
 
 local _c
 for _c in "${(ok@)_compautos}"; do
-  print -r "autoload -Uz ${(q-)_compautos[$_c]} $_c" >& $_d_fd
+  print "autoload -Uz $_compautos[$_c] $_c" >& $_d_fd
 done
 
 print >& $_d_fd
 
 print "typeset -gUa _comp_assocs" >& $_d_fd
-print -r "_comp_assocs=( ${(qq)_comp_assocs} )" >& $_d_fd
+print "_comp_assocs=( ${(qq)_comp_assocs} )" >& $_d_fd
 exec {_d_fd}>&-
 
 mv -f $_d_file ${_d_file%.$HOST.$$}
diff --git a/Completion/compinit b/Completion/compinit
index 51e9d88b8..5cb527fac 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -301,7 +301,7 @@ compdef() {
     if [[ -z "$eval" ]] && [[ "$1" = *\=* ]]; then
       while (( $# )); do
         if [[ "$1" = *\=* ]]; then
-	  cmd="${(q)${1%%\=*}}"
+	  cmd="${1%%\=*}"
 	  svc="${1#*\=}"
           func="$_comps[${_services[(r)$svc]:-$svc}]"
           [[ -n ${_services[$svc]} ]] &&
@@ -412,7 +412,7 @@ compdef() {
 	      svc=
             fi
             if [[ -z "$new" || -z "${_comps[$1]}" ]]; then
-              _comps[$cmd]="${(q)func}"
+              _comps[$cmd]="$func"
 	      [[ -n "$svc" ]] && _services[$cmd]="${1#*\=}"
 	    fi
             ;;