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

PATCH: zsh-3.1.5-pws-11 plus: _long_options and compstate[matcher]



This is the same bug that I had to patch in _match_test before.  Please
remember that compstate[matcher] may be ZERO!  I think this is the right
fix.

--- _long_options.bak	Mon Mar  8 10:28:51 1999
+++ _long_options	Mon Mar  8 10:30:54 1999
@@ -180,7 +180,7 @@
 
 # We get the string from the line and and see if it already contains a 
 # equal sign.
-[[ compstate[matcher] -ne 1 ]] && return
+(( compstate[matcher] > 1 )) && return
 
 str="$PREFIX$SUFFIX"
 



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