From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5736 invoked by alias); 15 Jan 2016 03:05:14 -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: 37631 Received: (qmail 17574 invoked from network); 15 Jan 2016 03:05:14 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=eL04f3FH6OY/w5yWBDN7wFzKovTjte1le8b6sUReqjE=; b=Ynsp4KA9U9agD6qzX4NF+L1LspkzgXeLw+MQz5BBd028tqV9i8htP/5fGwH9H2KyKQ 4tedD1HOITzixkcEW1q/qQ4KFtcwDKAcIx9GZ71frzrjNY+gS10qXEh+yyHynMu58ry8 wx4hkAAyyk3ZYqWMH9SXGwXnNjC8nRf3+4IHGRigB/17lo85N83kWuzHhrfXY0v7nEce mktBkIs0JcqIY+0jlEd0AMX2hoDO+n5YtTgGVvjXgXp92VrxRs6suLQM2x1ky0m5MO1m P1dI3lYMRBJwepAr45lRE+PUNguAt46A2vfk6VAS1vRe40VPE/RcxzF9Rrt765SIaS1g 5HSA== 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=eL04f3FH6OY/w5yWBDN7wFzKovTjte1le8b6sUReqjE=; b=Y96oF7m9rSKFPvpTOVMjcQ2z/Q21GbqlWd2PdI0q+jkhighqFCKMUiTonRmQ5+Cz5C Q7XtX6zIl940eLBsSM1SYJazEMpkJu2rSWha0y+0gKQ5yolxh8B+vws1OdYnPEr9rERi XG/5U3VAVFhVG7+/eOvY9bmMlY486JGZP06uzU5QPr903opwM1WHZRxB4TjXE0bkGJxg pabLIvJC3mbvfh129xFRqpB74wvc1PiehPO8hciwmWDKZBEIa3C/2D5Y86ZyvVNL0ty+ 7BQzMDZLelaqYAQliRiNw8CRC4xjyD2mJue/l6j5hjGjFYI/LJdMj4PjhI7o4DR6YzeE OOWQ== X-Gm-Message-State: ALoCoQkxoqC43y6DXmhuLlTI8KuOQbvJ+aLiNtgsb6PPlN2VdlvCJjlV0bA5OZDH7rvkAxiUz/CIeYWfxTvMlDIppXqyFteI/w== X-Received: by 10.98.9.220 with SMTP id 89mr11527530pfj.17.1452827111945; Thu, 14 Jan 2016 19:05:11 -0800 (PST) From: Bart Schaefer Message-Id: <160114190532.ZM18340@torch.brasslantern.com> Date: Thu, 14 Jan 2016 19:05:32 -0800 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: _history-complete-older problems with $(" (Jan 14, 11:55am) References: <160111161501.ZM5305@torch.brasslantern.com> <160112113928.ZM9065@torch.brasslantern.com> <20160113010147.GA4699@tarsus.local2> <160112180141.ZM9984@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: _history-complete-older problems with $( MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 14, 11:55am, Sebastian Gniazdowski wrote: } Subject: Re: _history-complete-older problems with $( } } I have one idea. It's generally about detecting a syntax error that } makes shell word unbound. By appending " x" to shell word and running } (Z+n+) one can obtain either 1 or 2 elements and first signals a } syntax error. For such case, SUFFIX would consist only from a space } delimited part of the regular right part. That should work, and in fact the completion internals do something quite similar.