1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 21:51:40 +02:00

users/11852: _expand_alias removed quotes from aliases incorrectly

This commit is contained in:
Peter Stephenson 2007-09-18 08:22:35 +00:00
parent 11b96deb75
commit a5ccfcf70b
2 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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