Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_expand_alias call to compadd missing a --, patch
- X-seq: zsh-workers 27797
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: _expand_alias call to compadd missing a --, patch
- Date: Mon, 15 Mar 2010 21:55:10 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=feevMxrysTnmngBsM/PfVv/JEpgYLINy99zciILB5dY=; b=vW2i0Dx4DZbbB7ZHP8Jnhc6X/mgDx3y+1pK1GXCgwRwM1jMMTIe6x06xEkzrjAsCYV 8StgrYxa8wRFlBsD/Z8kdaVAw7Igyw1xoVkIHSwYBmIFAenlyDS45BRAkDIdS5qHwOQ+ CnoKTqR4pWWL92UDiiaj3onF8El466l9rpuEs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=V3gxcmgIEjjrqKgrFqYqoDafmxf7StiAkjlNGZAtGTic4ZDwWnDhphiamqceHNyB3a CgSy+7f8mAGZUeHnaVB34nU4aDb4s0GZ9O8OSJAzT2GUvjKVniNo5uuVSirXZYJtdZPw 2LxHekwDB3x4siMjH9l9sqiR1PLj7MZWspm14=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
alias foo=-break
foo<call _expand_alias>
_all_labels:compadd:39: bad option: -b
diff --git a/Completion/Base/Completer/_expand_alias
b/Completion/Base/Completer/_expand_alias
index aa42faf..24a367d 100644
--- a/Completion/Base/Completer/_expand_alias
+++ b/Completion/Base/Completer/_expand_alias
@@ -60,7 +60,7 @@ if [[ -n $tmp ]]; then
tmp="\\$tmp"
fi
fi
- $pre _wanted aliases expl alias compadd -UQ ${tmp%%[[:blank:]]##}
+ $pre _wanted aliases expl alias compadd -UQ -- ${tmp%%[[:blank:]]##}
elif (( $#pre )) && zstyle -t ":completion:${curcontext}:" complete; then
$pre _aliases -s "$sel" -S ''
else
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author