From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24536 invoked by alias); 27 Aug 2015 00:16:48 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36284 Received: (qmail 13451 invoked from network); 27 Aug 2015 00:16:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=b6+2Vck+wQw5VxmOxiCDG1pDfR/IDHICV1/SdbR3iH4=; b=wfztNPVnxFCqHPJA+rDikPCiVA1cvBclCTewXsv1g7p6H+GOYlseHDAOu//6U6fOJc aMOKW3ptDursppm4Ee9hx3jwwQlvOtEB1H/EzvF33BQt1urxX5sJ6NTxH5O1RmkUFWvV JcNBbQjHWpf15k/NkS21DEiBXvWcz0PbbndPTavPoo2cjWLvIVkFLMRxkqx7TtAykZNt HOZQa78AW2aqD9q+tmz5zrTHq7l15oMbPF5GL4B0uu5Zjq7ttXRmBrfVhasMTvj48Rsn 3JM1BYb9yFi/mcH0QSn8RPHRrHlGCzfOKVIWz8I6/qg0EBi/Vl59yJHJaCcf8zAKpow6 ViYQ== MIME-Version: 1.0 X-Received: by 10.55.53.193 with SMTP id c184mr2110786qka.62.1440634604318; Wed, 26 Aug 2015 17:16:44 -0700 (PDT) In-Reply-To: <150826111808.ZM30185@torch.brasslantern.com> References: <20150826053928.GD19027@tarsus.local2> <150826111808.ZM30185@torch.brasslantern.com> Date: Thu, 27 Aug 2015 02:16:44 +0200 Message-ID: Subject: Re: Completion of prefix redirections is -command- instead of -redirect- From: Mikael Magnusson To: Bart Schaefer Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On Wed, Aug 26, 2015 at 8:18 PM, Bart Schaefer wrote: > On Aug 26, 5:39am, Daniel Shahaf wrote: > } > } Typing "<" and at the prompt tries these completions [wrapped by me]: > } > } tags in context :completion::complete:-command-:: > > Confirm this is new since 5.0.8. > > Looking at _complete_debug output, it seems to be ignoring the "<" and > completing as if the buffer were empty; there is nothing in the $words > array when entering compsys, so of course it tries commands. > > Interestingly, compctl doesn't have this problem (though maybe not for > the right reason). 249999cfb485914fe6f8630b1f4079e1227a5097 is the first bad commit commit 249999cfb485914fe6f8630b1f4079e1227a5097 Author: Peter Stephenson Date: Sun Aug 9 18:40:54 2015 +0100 36025: Fix completion aftoer "foo=bar; setopt ". Done by catching a case that doesn't seem to be handled otherwise, so there's some hope it doesn't screw up too much. With the above commit reverted, < completes files again, but so does ; . -- Mikael Magnusson