mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
users/11852: _expand_alias removed quotes from aliases incorrectly
This commit is contained in:
parent
11b96deb75
commit
a5ccfcf70b
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue