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

PATCH: facilitate completion in "scalar arrays"



We're still lacking completion of options to typeset and friends; you get
an = if you try to complete 'typeset -'.

Maybe the : rule should only apply when the parameter is *scalar* or
doesn't exist yet.

Index: Completion/Builtins/_vars_eq
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Builtins/_vars_eq,v
retrieving revision 1.1.1.6
diff -u -r1.1.1.6 _vars_eq
--- Completion/Builtins/_vars_eq	1999/08/25 08:29:14	1.1.1.6
+++ Completion/Builtins/_vars_eq	2000/04/14 14:56:49
@@ -1,6 +1,8 @@
 #compdef declare export integer local readonly typeset
 
-if compset -P '*='; then
+if compset -P '*=*:'; then
+  _default
+elif compset -P '*='; then
   _default
 else
   _parameters -q -S '='



Messages sorted by: Reverse Date, Date, Thread, Author