Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compset -q oddities
- X-seq: zsh-workers 39300
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: compset -q oddities
- Date: Mon, 12 Sep 2016 23:06:32 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=xdrEtVsdZWWvdFDe pLMDGgvVXbU=; b=aBkuNbWbswPbZGwhHpqu0u2FgvSDyx49P29cqSR0kcRdizec M7f6zRC9DIPjfyyBRKNnz8GTBHGl1hIXgz+Af0bOXLhz0iGZciVsBsL6bWb50EoL wGZNGwjaNlxrXk6gQ44BDNcnb6N0pLfDPwiqVHrFa97yDHs8kpLUqAFOyO8=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=xdrEtVsdZWWvdFD epLMDGgvVXbU=; b=CZ1zOsZAE8SJciXnjmUTO7mlwyxzYttHK7tDwVkOiXW0Zbz y51KxYeF6Un9ji38SLzlKCx3NPzFHJpDOnhB3c4QrA1eGXpjC9gQnzZY+fjaaNAo 6bExdweKoMmOGxYkkg+M4EnYphtKoF8I2gb3fke3zqjl6AJd7zE9EveTkHk0=
- In-reply-to: <160911191422.ZM21970@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160911073031.GA19137@fujitsu.shahaf.local2> <160911191422.ZM21970@torch.brasslantern.com>
Bart Schaefer wrote on Sun, Sep 11, 2016 at 19:14:22 -0700:
> On Sep 11, 7:30am, Daniel Shahaf wrote:
> }
> } I managed to break a few things while composing a reply to 39265:
>
> I think mostly what you've discovered is cases where "compset" is not
> compensating for pilot error. "compset -q" does not expect to be
> called on an empty word, or on any word that can't be interpreted as
> a (possibly partial) command line;
Thanks, but I don't understand how any of those examples constitutes
a "pilot error" or an empty word.
In #1, "~~~" is a complete word; completion changed it to "~~~~~~" which
is also a complete word but wasn't a candidate completion.
In #2 and #3, the input is a prefix of a valid command line («g
$'\'foo\''» and «h "$'foo'"» respectively). #2 does not involve an
empty word; the word there is «'» (a single-byte word).
Thanks again for the explanation. I'd like to understand what the
expected behaviour here is. They triggered DPUTS calls so I assumed
they were bugs.
Cheers,
Daniel
(#2 doesn't call compadd, but behaves the same if a call to _nothing is
added to _g.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author