From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22375 invoked by alias); 27 Aug 2015 16:47:31 -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: 36297 Received: (qmail 28210 invoked from network); 27 Aug 2015 16:47:31 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=+P/S/VoY2oxogBOnsFeJM2GMyMI2WrTkEVy3a5S/29s=; b=L/Z+gbgWlnXCqa58coKr8nx0T+pd46R6+PYVfOz36g2ClEWWKTbfzD85ZWrxVpj55s SuuSmKHo+kfekZ1AfzrXSfMrRoDzrw2pHX7RS2FngsqNbc9aE9jS/QepcfGo/jA1zFsl n159fH1kqpiOIm7nIb/W7FF3DZ5/+6vgTxHfZJtqrMCvYdPll2Rdpd0HTlnCyuazd7Rs Xc1vBafnozcj/isvtvlP7zbYkHz1jkS8YdLLd65uegK3xPWhj23k8JCsWLUqWffbKShJ Wr9WYAk4uosF/Y2GlB9RlSgaWnumB6Ezz2h+770nruIadU6Cwut7bTnvnXoWuSOkiiZG zggA== X-Gm-Message-State: ALoCoQmtG5SAEUvEVr759pktKYF/IHDZRH7oaUzx8BB4sOoeoTs9wChZ0EpcSnZ4lOYUiUTWYIXq X-Received: by 10.182.230.234 with SMTP id tb10mr3306022obc.23.1440694047100; Thu, 27 Aug 2015 09:47:27 -0700 (PDT) From: Bart Schaefer Message-Id: <150827094724.ZM1120@torch.brasslantern.com> Date: Thu, 27 Aug 2015 09:47:24 -0700 In-Reply-To: Comments: In reply to Mikael Magnusson "Re: Completion of prefix redirections is -command- instead of -redirect-" (Aug 27, 8:22am) References: <20150826053928.GD19027@tarsus.local2> <150826111808.ZM30185@torch.brasslantern.com> <150826213532.ZM31157@torch.brasslantern.com> <150826214729.ZM12037@torch.brasslantern.com> <150826221413.ZM25355@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: Completion of prefix redirections is -command- instead of -redirect- MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 27, 8:22am, Mikael Magnusson wrote: } Subject: Re: Completion of prefix redirections is -command- instead of -re } } When I try this patch, I get all my previous cases right except the } one you mentioned, but also } ; < : } completes files instead of commands now (before, it completed commands } both with and without the : there, so not more correct in total). It thinks ":" IS the command. torch% ; < ls tags in context :completion::complete:ls:: argument-rest options (_arguments _ls) tags in context :completion::complete:ls:argument-rest: globbed-files (_files _arguments _ls) (The context for the ":" command is not ideal either since ":" is the field separator ...) } PS } If anyone can get } for (a b) { } to complete commands, that would be nice too :). (this never worked) I presume you mean without the parens around "a b"? Otherwise it's not valid syntax. As PWS said, this is really a job for a state machine ... and not for a hack this close to a release if it's something that hasn't ever worked.