zsh-workers
 help / color / mirror / code / Atom feed
From: Martin Vaeth <martin@mvath.de>
To: zsh-workers@zsh.org
Subject: Re: Strange completion display with wrong matcher-list
Date: Sat, 7 Jan 2017 22:15:52 +0000 (UTC)	[thread overview]
Message-ID: <slrno72q4t.6gh.martin@lounge.imp.fu-berlin.de> (raw)
In-Reply-To: <74837.1483824065@hydra.kiddle.eu>

Oliver Kiddle <okiddle@yahoo.co.uk> wrote:
>
> The purpose of the -A option is something different

I know, but it is this option which "caused" the _argument
function to work as I had expected in <zsh-5.3 concerning ->.
Only now I learnt that this expectation is considered a bug
in >=zsh-5.3.

Today I fixed all 19 of my packages which had completion files
relying on this expectation...
https://github.com/vaeth?tab=overview&from=2017-01-07

> Also, an initial - is typically actually valid in things like files and
> patterns so it wouldn't be right to not try to complete them.

I am not so sure: Except for echo - which is very special - and
commands which do not accept any options at all, I do not know
_any_ real-world example of a command for which

command -some_argument

is valid without interpreting the argument as an option.
(The only exception is sometimes a bare "-", but for this
completion is rather pointless...)

Of course, as you mentioned, for some commands the situation
is different after a non-option, and for most commands the
situation is different after "--": But that's what -A
and -S are for.


      reply	other threads:[~2017-01-07 22:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-07  7:49 Martin Vaeth
2017-01-07  8:10 ` Martin Vaeth
2017-01-07  9:39 ` Oliver Kiddle
2017-01-07 13:54   ` Martin Vaeth
2017-01-07 21:21     ` Oliver Kiddle
2017-01-07 22:15       ` Martin Vaeth [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=slrno72q4t.6gh.martin@lounge.imp.fu-berlin.de \
    --to=martin@mvath.de \
    --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).