diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-09-18 08:22:35 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-09-18 08:22:35 +0000 |
commit | a5ccfcf70b424b369237e3a746eef0409d8b4724 (patch) | |
tree | e66a679cd949359acb1df00af7a8bfe10b5f5d36 /Completion/Base | |
parent | 11b96deb75e2be86ae44faa110fb6e782e79dc7e (diff) | |
download | zsh-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_alias | 5 |
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 |