Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

_expand_alias call to compadd missing a --, patch



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