From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] _chmod: use $line[1] instead of $words[2] to access the mode
Date: Sun, 5 Jan 2014 18:16:02 +0000 [thread overview]
Message-ID: <20140105181602.5d053392@pws-pc.ntlworld.com> (raw)
In-Reply-To: <91188AF3-FD51-4C2D-AB3A-8F6DE1FBF658@kba.biglobe.ne.jp>
On Sun, 5 Jan 2014 21:52:56 +0900
"Jun T." <takimoto-j@kba.biglobe.ne.jp> wrote:
> BTW, man zshcompsys says, in the description of _arguments,
>
> During the performance of the action the array `line' will be set to
> the command name and normal arguments from the command line, i.e. the
> words from the command line excluding all options and their arguments.
>
> But it seems $line contains only the 'normal arguments', not including
> the 'command name'.
This is quite hard to verify for sure, since that parameter emerges from
the comparguments builtin in Src/Zle/computil.c after some quite major
engineering works, but it certainly looks plausible indepdendently of
your testing --- my reading is that everything that happens in the code
is associated with arguments that map onto something specified by the
_arguments call, which don't include the command name that triggered
completion. I've submitted a change.
pws
prev parent reply other threads:[~2014-01-05 18:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-05 12:52 Jun T.
2014-01-05 18:16 ` Peter Stephenson [this message]
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=20140105181602.5d053392@pws-pc.ntlworld.com \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/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).