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 7763
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Silly questions about _arguments & Co (and probably bugs)
- Date: 10 Sep 1999 07:01:09 +0900
- In-reply-to: Sven Wischnowsky's message of "Thu, 9 Sep 1999 16:27:12 +0200 (MET DST)"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199909091427.QAA03152@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
In article <199909091427.QAA03152@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:
> diff -u oldcompletion/Base/_arguments Completion/Base/_arguments
> --- oldcompletion/Base/_arguments Thu Sep 9 16:12:19 1999
> +++ Completion/Base/_arguments Thu Sep 9 16:22:33 1999
> @@ -57,6 +57,8 @@
> # We have to build the long-option cache anew, get the `-i' and
> # `-s' options.
>
> + set -- "${(@)argv[nth+1,-1]}"
> +
> iopts=()
> sopts=()
> while [[ "$1" = -[is]* ]]; do
Hm.
...
+_arguments:60> set -- *strip=NUM*:number:{compadd "$expl[@]" -S0 -r "1-9" - ""} *get=NUM*:get files from RCS etc: *=LINES*:lines: *=PATCHFILE*:patch file:_files *=FILE*:file:_files *=NAME*:name: *=WORD*:quoting style:(literal shell shell-always c escape) *=STYLE*:version control style:(simple numbered existing) *=SUFFIX*:backup file suffix:(.bak) *=DIR*:chdir to:_files -/
...
+_arguments:116> set -- *=FILE*:file:_files *=(DIR|PATH)*:directory:_files -/ *:unknown:
...
So, _arguments forget '*strip=...' ...
Index: Completion/Base/_arguments
===================================================================
RCS file: /projects/zsh/zsh/Completion/Base/_arguments,v
retrieving revision 1.1.1.30
diff -u -F^( -r1.1.1.30 _arguments
--- _arguments 1999/09/09 14:33:42 1.1.1.30
+++ _arguments 1999/09/09 21:54:29
@@ -113,7 +113,7 @@
# Then we walk through the descriptions plus a few builtin ones.
- set -- "${(@)argv[nth+1,-1]}" '*=FILE*:file:_files' \
+ set -- "$@" '*=FILE*:file:_files' \
'*=(DIR|PATH)*:directory:_files -/' '*:unknown:'
while (( $# )); do
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author