about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-09-18 08:22:35 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-09-18 08:22:35 +0000
commita5ccfcf70b424b369237e3a746eef0409d8b4724 (patch)
treee66a679cd949359acb1df00af7a8bfe10b5f5d36 /Completion/Base
parent11b96deb75e2be86ae44faa110fb6e782e79dc7e (diff)
downloadzsh-a5ccfcf70b424b369237e3a746eef0409d8b4724.tar.gz
zsh-a5ccfcf70b424b369237e3a746eef0409d8b4724.tar.xz
zsh-a5ccfcf70b424b369237e3a746eef0409d8b4724.zip
users/11852: _expand_alias removed quotes from aliases incorrectly
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/Completer/_expand_alias5
1 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Base/Completer/_expand_alias b/Completion/Base/Completer/_expand_alias
index e711338a8..ee361d1bf 100644
--- a/Completion/Base/Completer/_expand_alias
+++ b/Completion/Base/Completer/_expand_alias
@@ -39,7 +39,10 @@ tmp=
 [[ -z $tmp && $sel = *G* ]] && tmp=$dis_galiases[$word]
 
 if [[ -n $tmp ]]; then
-  $pre _wanted aliases expl alias compadd -UQ ${(Q)tmp%%[[:blank:]]##}
+  # We used to remove the quoting from the value in the parameter.
+  # That was probably just an oversight: an alias is always replaced
+  # literally.
+  $pre _wanted aliases expl alias compadd -UQ ${tmp%%[[:blank:]]##}
 elif (( $#pre )) && zstyle -t ":completion:${curcontext}:" complete; then
   $pre _aliases -s "$sel" -S ''
 else