Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Completion: Improve _man (3)
- X-seq: zsh-workers 43023
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: [PATCH] Completion: Improve _man (3)
- Date: Fri, 15 Jun 2018 14:55:36 +0000
- Cc: dana <dana@xxxxxxx>, Zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=lECu7b YYu/c9T6Tf0fn1zw2QUtWUHK+3fc46bzIzWpU=; b=HUOs918/YeOidDSXryPdnl G8GnAuKfdar1Tf9ZIK6Dsd+dve8Rc3daPUZzTREcE01qCxtu920M88eb3tPz0O/k Ts6vi7+X6fpodHRhHXa+FJgh4gbzPIsf4yH5mTwEtNGw8mHEqdmVz3XT8et+nOJH VHJ+aGpB7XPOIwSQW3+qz41yLdREwVUna3O1AgZBhVAiqPuHQKmKbIXTfE4m/JyI rdN1qKOcRAIi9IGLIcNbaWF3j/ZwatgMhnmxuFgbzeE1LELiD+AV0i1Y9/uRoVBL E3z1bSkd2fPY58gX3030liQ+smu9hTQT+TLz3+6ojrcXQAIHl2M8MTFB1ZCfwf3A ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=lECu7b YYu/c9T6Tf0fn1zw2QUtWUHK+3fc46bzIzWpU=; b=kSAI338kJzivw36FlQ/Oe5 bLg8m2yA07nxjia+2vWrIaom4kaO63IyuRIjCt0ajCmjnJbbf/RnUXBVGGQSjC6o puLrKEFr8Y2g8kOWztDHRXPxWcnzdvWVauyHYY+h9r7pBgaVt5ehPARl7pUw15iq S2dyic4qnQqj40AIwJFCieqYu+roOmvoBrdozibu0NKoJS4mcLdyuovomK2+OAWU 9x3v7tMHUvaJlxGBjgLtZDKBmzH6hW9ELPceJq0bS1I+XUxAX032rrVrmd3+mcT/ 45o9OulZMTfaiH7vGfJ+w0ZIjmzbI21MTc8XxBKdRIkIhcAjVCO/H9K+c/41WGVg ==
- In-reply-to: <CAHYJk3SXbwUJUMuEVJkhA+eTtBge5VZQTuQbX0=1G-74PFgEqw@mail.gmail.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>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <9B2A476B-3C9F-4757-9818-4815A9417253@dana.is> <17923.1528636054@thecus> <B8768D9A-07D9-46D8-B0C0-CE78FBE9079C@dana.is> <2BD8008C-D6F4-4B4A-AF05-7EE80ADB0E47@dana.is> <20180614095001.v33idyjczkouva6n@tarpaulin.shahaf.local2> <C1FBF43A-6170-4675-ADFA-1C9540B17E26@dana.is> <53F42356-22E5-453F-9A61-25E71AFAC3BF@dana.is> <1529071515.3847618.1409229080.29BD5216@webmail.messagingengine.com> <64E31285-3F41-4F38-8E70-A42F2F2735AD@dana.is> <CAHYJk3SXbwUJUMuEVJkhA+eTtBge5VZQTuQbX0=1G-74PFgEqw@mail.gmail.com>
Mikael Magnusson wrote on Fri, Jun 15, 2018 at 16:39:36 +0200:
> Please don't use () for 1 {} a b c style loops in actual scripts, it
> is not guaranteed to work. Instead, use () { for 1 { } } a b c which
> is the documented syntax.
Now that you mention it, I think completion functions may not use shortloops
syntax: compinit doesn't reset that option.
That _still_ leaves us with a «for 1» loop, which I'm not actually sure is a
documented syntax, but it's useful enough that I'd welcome a regression test
for it.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author