From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12004 invoked by alias); 8 Feb 2016 19:09:32 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21254 Received: (qmail 6101 invoked from network); 8 Feb 2016 19:09:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) 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.1 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=f1ZDwq52BPGFWyUVJ9pcV7QOnXdnzYCqp0r43dXHUq4=; b=tvACSA1Fe8F/NlQr9/kGUcoC/JlJpMJe98c/46ghIt5MrEwp/wf5Uxtvwsk7MqJ/gY MoKWNLhBzdRDQsMz+09F5RDauDVt3MVYLqSL66ZoZ0vYk5m3Xd/c3qY5ThODCrzWwsJA xg5oKc099VG7PwN8GincfBXNgK5C4R6zJxovx26E02O2wqFoEk6xlLT/k/90cHBPkA8z bs4lWubHvHoqOrg8MwX7J5SgyoqktnA3wqbTNxnmLHNrGnuhhry9wRnmN6Ea3ESS/ryY PPol8EuWjN40DxUU/hj7tUtbWB1/2b7QJkd3FiSQI1eU9NGxPgk+qhT49XVnY7Nx9vmX 6uDw== 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=f1ZDwq52BPGFWyUVJ9pcV7QOnXdnzYCqp0r43dXHUq4=; b=e6lLr79Dly35USYBF8V8f1AgqschjAPokAsBi9svmMgmy66fhv1OJzOv0cn0pwWJlk Vb0dkVp7PlxaWXkGHsNpnnM1gJR3vY6k6i4Y68p5Fd+q8jY4nE+zXOzcg46OjgMv8AR8 BTOw+QG4ekXePe7Wd5QbSxz8rbsxNPPkcTIeK7s3I0Utyl2GVJgCy307W/rW9T9aYHkw 6NsaMBixLgs9xYPkeyJ2s9l5L+nGX02BkvRqciuNKZrMu1GZqPkPsR1s8l3vnXF/6sh8 Rro7QJ4YbB+PTpLs54ZVsTiNQwrVHLIUg2Yse7sfpRuI8Oe1BumH7poYlq0EN2lxmE2W fuMA== X-Gm-Message-State: AG10YOTiQksuTYXpCskbqVkxvP/snqY95JBC7u1xapj53sIKgIehiumGIXbFLlafJ8D84A== X-Received: by 10.66.227.73 with SMTP id ry9mr44557500pac.120.1454958570561; Mon, 08 Feb 2016 11:09:30 -0800 (PST) From: Bart Schaefer Message-Id: <160208110936.ZM12172@torch.brasslantern.com> Date: Mon, 8 Feb 2016 11:09:36 -0800 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Writing code that works with emulate zsh and emulate csh" (Feb 8, 6:45pm) References: <20160208105255.41caf0c6@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Writing code that works with emulate zsh and emulate csh MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 8, 6:45pm, Sebastian Gniazdowski wrote: } } It turns out that only a single option, CSH_JUNKIE_QUOTES, makes the } error message that I receive: } } ./zplugin.zsh:34: unmatched " } } What in this file can trigger the message? } } https://github.com/psprint/zplugin/blob/master/zplugin.zsh cshjunkiequotes means you can't have a newline embedded in a quoted string, so both the eval in --zplugin-shadow-autoload and the long help text in zplugin will break. } I then looked at the Wikipedia page and thought that emulate csh } enables completely different language syntax. Now it might revealed } that it just sets CSH_JUNKIE_QUOTES. Well, it does more than that; it turns off glob qualifiers, changes the way background jobs are monitored, disables =command expansion, enables globbing in assignments and substitutions, and enables alternate loop body syntax. However, it's probably true that the only significant parse-time (as opposed to execute-time) breakage of native zsh code is for quoting. } Maybe it could be possible to adapt zplugin.zsh to that option? You could use a here-document for the help text in zplugin, and a single line with semicolons for the eval body in shadow-autoload.