Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: `_files ... -F ...' stomps wrong position in opts array
- X-seq: zsh-workers 14217
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: `_files ... -F ...' stomps wrong position in opts array
- Date: Thu, 3 May 2001 16:46:42 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Index: Completion/Unix/Type/_files
===================================================================
--- Completion/Unix/Type/_files 2001/04/09 20:14:09 1.1.1.1
+++ Completion/Unix/Type/_files 2001/05/03 16:33:38
@@ -12,9 +12,9 @@
[[ "$glob" = *[^\\][[:blank:]]* ]] &&
glob="{${glob//(#b)([^\\])[[:blank:]]##/${match[1]},}}"
fi
-ign=$opts[(I)-F]
-if (( ign )); then
- ign=( $=opts[ign+1] )
+tmp=$opts[(I)-F]
+if (( tmp )); then
+ ign=( $=opts[tmp+1] )
if [[ $ign = _comp_ignore ]]; then
ign=( $_comp_ignore )
else
The bad bit is actually what comes after the above -- `tmp' was previously
not a number when this line executed:
opts[tmp+1]=_comp_ignore
fi
else
ign=
fi
Thus causing opts[1] to be stomped. This worked only if `-F' was the first
option given.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author