Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion confusion around the _arguments -A flag
- X-seq: zsh-users 23542
- From: Mal Graty <mal@xxxxxxx>
- To: dana <dana@xxxxxxx>
- Subject: Re: Completion confusion around the _arguments -A flag
- Date: Fri, 27 Jul 2018 18:05:53 +0100
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=idio-ai.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HqFkte57/UD6j21VjOi6CfkDUVM6AtxrAVePd/8rSEI=; b=dA3NUJHeQlTmeAv8VjizC0C0SS7jFjW9ud/Cya19nv+WX8BNq3LbS10CWnqJ/uV+2V NnDxKlDwEvCMmnJSRQ9bUh9dtSGah3MqWthAr2bhDLBV7cvWdHNjigChBpax3zccLxps UQipxfWaP1cqw7bk6k6+2iyFcC1lTG4P/uyDKKv8uW0PuDQ6OeK+RM8SlbG471wo9hFC HdJt5Z71kH8F8fsJzDbrcUUJzkE5SGwGHolBy14FCfPI7xUhfLqcZmrFCm/u9Zx9mcOf GyrPqosh0R3iEF3EcxzbjVERXd3IIlw6YziPhNcrKXq5zoGvbE1NdKLgnTNtHuWBsZ/V oqcQ==
- In-reply-to: <4B46A103-4424-48D6-8585-1EC273B20584@dana.is>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAJCae=CUioiTBB8wc8vpzYii3_5T3VJjzqAOekKvRs=-=kVLWQ@mail.gmail.com> <CAJCae=DDuU=pGpeG7x6L-v5k7ftw0MJbp-CF6_C2E_n4e_fXvg@mail.gmail.com> <4B46A103-4424-48D6-8585-1EC273B20584@dana.is>
Thanks Dana
For reference, in case it rings a bell for anyone, I'm seeing this on a
vanilla Ubuntu 18.04 install. I'll have a poke around for anything that
might be altering default behaviour though, thanks for confirming I'm
not mad :)
On 25 July 2018 at 17:36, dana <dana@xxxxxxx> wrote:
> On 22 Jul 2018, at 10:16, Mal Graty <mal@xxxxxxx> wrote:
> >I have a binary (call it foo) with two, mutually exclusive, optional flags
> >(that must come first) and a required arg. The problem I'm having is that
> >when omitting both flags and using just the arg the completion tries to
> add
> >one of the flags after it. Reading the docs lead me to the -A flag,
> however
> >it doesn't seem to be preventing the flag completion despite being after
> >the first arg. I'm hoping I've just overlooked something but for the life
> >of me I can't see it.
>
> For whatever it's worth, i don't see anything obviously wrong with your
> function, and it works fine when i test it on 5.5. Maybe you have an option
> enabled that changes the behaviour, idk
>
> dana
>
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author