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 | |
parent | 11b96deb75e2be86ae44faa110fb6e782e79dc7e (diff) | |
download | zsh-a5ccfcf70b424b369237e3a746eef0409d8b4724.tar.gz zsh-a5ccfcf70b424b369237e3a746eef0409d8b4724.tar.xz zsh-a5ccfcf70b424b369237e3a746eef0409d8b4724.zip |
users/11852: _expand_alias removed quotes from aliases incorrectly
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Base/Completer/_expand_alias | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 55268b65b..bf3b60e48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-18 Peter Stephenson <pws@csr.com> + + * users/11852: Completion/Base/Completer/_expand_alias: + quotes were incorrectly removed from aliases. + 2007-09-13 Clint Adams <clint@zsh.org> * 23813: Src/Zle/zle_hist.c: set vipenultsrchstr to NULL 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 |