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]
- X-seq: zsh-workers 5688
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: zsh-3.1.5-pws-11 plus: _long_options and compstate[matcher]
- Date: Mon, 8 Mar 1999 10:35:50 -0800 (PST)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Reply-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
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