From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13022 invoked by alias); 19 Jan 2016 03:28:47 -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: 37683 Received: (qmail 6986 invoked from network); 19 Jan 2016 03:28:44 -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=CoxOpUndQ060tG4XZC8ILVXeh29yXEb/KYbeZMkfoLQ=; b=vhFejUSmcsLk9M2jEneN3IZAnIf5l9rRtq4SE7+hUzFSXUNHnCD7A/Ol1YTKAf67AS dfVBnjV0iFi1Js12IpoBWEzWl03CKFBnhjV1rmIwSlmuqu8W6I8EE42W1J7n/FzoW/30 bKJnvqZQSJPXr1SwAKkaCRgFPZU4Ad2Hk8LCW8cDf0e4uC6PaKLGZnQ405xUYyg/IF52 IuR4cnn9khz6mNuzTnO5XOFCK+CN+QytBf+1QGSS7b+9koPOJqgtnjhr6gW2B/xFxjwg MvZQemHSjhO3kohnZptRgKdrsttm0yS9vQMutWlMSK+/zPjv1CeGAeuECgUCwxJrk07/ 5fgw== 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=CoxOpUndQ060tG4XZC8ILVXeh29yXEb/KYbeZMkfoLQ=; b=WnL/+8H79VgQcxpUCXyaYwPkgb79ZCFeMQSV3gXS+DtLQNWHisMWDQasXfiBVP5VM7 odA1Y5pwIiQQ60mP6Om7AeGjwhDaq05CiGRvazoA3Zpti1y3nkCn6dtmwScsi4B/olGU gC5pKkjgqbde6zFml8G0mlf7QMlHQaFpioaiOkhffe6HEyzTeu6B0LnkuQWdYUZn2TaA jFtglUJhTfPwLAZxNL+lXUa5FNgks9OwVn2jdXbozauyO/MVjM8Z5tghzYCGXJr791Z/ JBPqDOoANEOzz0dwHxtVQqbrzJQ/vGIVG/q32gEiphKjILAvy4U6vxiywkw3aRVclS0c ab9A== X-Gm-Message-State: ALoCoQlky+F5e9zjKqykYlBUw/bpcaR/KPeU7ZEG0tc+5vHysRcfWqIJGiAebumfNeGLHJ373W51DSlf99oRQ2y+XdsOHBvz2g== X-Received: by 10.98.74.135 with SMTP id c7mr40914252pfj.129.1453174121411; Mon, 18 Jan 2016 19:28:41 -0800 (PST) From: Bart Schaefer Message-Id: <160118192908.ZM18534@torch.brasslantern.com> Date: Mon, 18 Jan 2016 19:29:08 -0800 In-Reply-To: <160118163255.ZM3369@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: bufferwords() lexes a subshell in a shortloop repeat as a string" (Jan 18, 4:32pm) References: <20160115062648.GA14019@tarsus.local2> <20160115094117.5fcde75c@pwslap01u.europe.root.pri> <160115112516.ZM21347@torch.brasslantern.com> <20160117181647.49899357@ntlworld.com> <160117144635.ZM3583@torch.brasslantern.com> <20160118094129.260a60ae@pwslap01u.europe.root.pri> <160118083658.ZM6465@torch.brasslantern.com> <20160118165237.11b1349a@pwslap01u.europe.root.pri> <160118163255.ZM3369@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: bufferwords() lexes a subshell in a shortloop repeat as a string MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 18, 4:32pm, Bart Schaefer wrote: } } Aside: "emulate sh" does the equivalent of } } setopt shglob noglob nokshglob My bad. That's "ARGV0=sh zsh -f", not emulate. I should not have used -f there; mistaken history edit. However, @(foo) is *parsed* as a pattern with only kshglob, but then does NOT *match* as a pattern unless glob is also set. To get back on the original topic of this thread, here's more oddness from bufferwords(): torch% print -l ${(z):-repeat 3 (echo foo;echo bar)} repeat 3 echo foo ; echo bar torch% Where did the parens go? I suspect something is failing to set tokstr. Without the (z) flag, the parens are interpreted as delimiting glob qualifiers.