Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Silly questions about _arguments & Co (and probably bugs)
- X-seq: zsh-workers 7808
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Silly questions about _arguments & Co (and probably bugs)
- Date: Mon, 13 Sep 1999 16:21:47 +0200 (MET DST)
- In-reply-to: Tanaka Akira's message of 13 Sep 1999 22:57:04 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Tanaka Akira wrote:
> Z:akr@is27e1u11% Src/zsh -f 2>z
> is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
> is27e1u11% compconf group_matches=yes message_format='%d' description_format='%d' describe_options=yes
> is27e1u11% patch -l<TAB>
> option
> -B -D -E -F -N -R -S -T -V -Y -Z -b -d -z
>
> Completion candidates are not enough.
>
> With `set -x', zsh reports:
>
> ...
> +_arguments:680> uns=-ignore-whitespacel
> ...
>
> Hm. Exclusive long options should not used for `uns'.
Yep.
Bye
Sven
diff -u oldcompletion/Base/_arguments Completion/Base/_arguments
--- oldcompletion/Base/_arguments Mon Sep 13 15:46:24 1999
+++ Completion/Base/_arguments Mon Sep 13 16:21:02 1999
@@ -561,7 +561,7 @@
uns="${ws[1][2,-1]}"
if [[ -n "$uns" ]]; then
- uns="${(@j::)${(v)=xors[(I)${ws[1][1]}[$uns]]}#[-+]}"
+ uns="${(@j::)${(M@)${(v)=xors[(I)${ws[1][1]}[$uns]]}:#??}#[-+]}"
if [[ -n "$uns" ]]; then
tmp=(
"opts[${(@)^opts[(I)${ws[1][1]}[$uns]]}]"
@@ -677,11 +677,11 @@
done
fi
- [[ -n "$sopts" && -n "$opt" && "$PREFIX" = [-+]${~soptseq}[$sopts] ]] && \
+ [[ -n "$sopts" && -n "$opt" && "$PREFIX" = [-+]${~soptseq}[$sopts] ]] &&
uns="${PREFIX[2,-1]}"
if [[ -n "$uns" ]]; then
- uns="${(@j::)${(v)=xors[(I)${ws[1][1]}[$uns]]}#[-+]}"
+ uns="${(@j::)${(M@)${(v)=xors[(I)${ws[1][1]}[$uns]]}:#??}#[-+]}"
if [[ -n "$uns" ]]; then
tmp=(
"opts[${(@)^opts[(I)${pre[1]}[$uns]]}]"
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author