zsh-workers
 help / color / mirror / code / Atom feed
From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Silly questions about _arguments & Co (and probably bugs)
Date: 10 Sep 1999 07:01:09 +0900	[thread overview]
Message-ID: <rsqg10nu4m2.fsf@crane.jaist.ac.jp> (raw)
In-Reply-To: Sven Wischnowsky's message of "Thu, 9 Sep 1999 16:27:12 +0200 (MET DST)"

In article <199909091427.QAA03152@beta.informatik.hu-berlin.de>,
  Sven Wischnowsky <wischnow@informatik.hu-berlin.de> 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


  reply	other threads:[~1999-09-09 22:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-09 14:27 Sven Wischnowsky
1999-09-09 22:01 ` Tanaka Akira [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-09-13 14:21 Sven Wischnowsky
1999-09-13 11:56 Sven Wischnowsky
1999-09-13 13:57 ` Tanaka Akira
1999-09-09 13:55 Sven Wischnowsky
1999-09-09 14:05 ` Andrej Borsenkow
1999-09-09 15:15 ` Andrej Borsenkow
1999-09-09 15:44   ` Tanaka Akira
1999-09-09 13:13 Andrej Borsenkow
1999-09-09 13:54 ` Tanaka Akira
1999-09-09 14:26   ` Andrej Borsenkow
1999-09-09 14:32     ` Tanaka Akira
1999-09-09 14:34       ` Andrej Borsenkow
1999-09-09 14:45         ` Tanaka Akira
1999-09-09 15:02           ` Andrej Borsenkow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rsqg10nu4m2.fsf@crane.jaist.ac.jp \
    --to=akr@jaist.ac.jp \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).