From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10965 invoked by alias); 15 Jan 2016 19:24:57 -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: 37648 Received: (qmail 23299 invoked from network); 15 Jan 2016 19:24:56 -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=N5phFttMk27DFtxyiJov7aiVBGaBvwDH5JDIPCxbl0s=; b=haIXDnlJ7UFKwpjouDNFU4+VetjbxNqyUgB/Stn4+kxsAKxzQkYMnE33p83gPodZOQ CMtGMGYQvinL8QElJkBAXHmlYSDtnJ8sWveeDWhVZNAiW1N54EnWX+eXftRqMl8JzaR1 DtHkLEx0vfv3ycvFWQDJJkfb3u3KxHKHLG9BKx4MSEJUTdJTjohottrBwMz2YqqjqWhu fgwY2kbwGnlPyhPs4y8d3R1xdaPBFXe6di7irzO0g3mf/oOk1ll3RPOBZwXI8dLrh5L8 NW9GoMIOneU7Xe9AhNhAFb9AJcp9fLvVjsHzK4HGp28lLJkjeb+AaF//ad9gLdG9DHet 9dNg== 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=N5phFttMk27DFtxyiJov7aiVBGaBvwDH5JDIPCxbl0s=; b=PT72h3GAuwk4vYjoik8JeCWVR6jUBMALpNVpvi2LKe5eIW3TFNB9qvt+Gg/MZNJJOz ou6656y755aDW1YhR66KrrB7ZBQeNl/o9uJeS+FF9cEEnC81mmOEHz9LH433P9rN7OIi wRu7dZ+2zEArfOxeKxEfR1kyv1kBmkGJLKZZo9tVRX+2IFvxlivWSTF19p370kHUhDSX Fe9svgbbDM/hbY12B6VRBresiJb9hWDauxV/Hl7x2Q/saTHCp9Pe4PDBcousKhmJ5wC0 fWHoaiK3hn+Qy//eYqb7sgspfh7O3FjkEpUIWtDgcEmnWVjAz+bdQUcht3rs8rHZQ2OF edww== X-Gm-Message-State: ALoCoQmLw43WkmQXx7Np7WFeLxQsGv5OkFuGW/7itM2NIEHMXyw9PCRASaDm3/Avq8gtyvRvzMc6mmkNmRF45P33FHiKhHQD3Q== X-Received: by 10.98.66.139 with SMTP id h11mr17328573pfd.121.1452885894951; Fri, 15 Jan 2016 11:24:54 -0800 (PST) From: Bart Schaefer Message-Id: <160115112516.ZM21347@torch.brasslantern.com> Date: Fri, 15 Jan 2016 11:25:16 -0800 In-Reply-To: <20160115094117.5fcde75c@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: bufferwords() lexes a subshell in a shortloop repeat as a string" (Jan 15, 9:41am) References: <20160115062648.GA14019@tarsus.local2> <20160115094117.5fcde75c@pwslap01u.europe.root.pri> 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 15, 9:41am, Peter Stephenson wrote: } Subject: Re: bufferwords() lexes a subshell in a shortloop repeat as a str } } it's just splitting words, and (... ...) indeed works as a complete word Urk. That probably ought to be disabled, at least in shell emulation, e.g. here is bash: schaefer@burner$ echo one (two three) four bash: syntax error near unexpected token `(' Here's an interesting side effect: torch% touch "two three" torch% unsetopt bareglobqual torch% ls -l (two three) -rw-rw-r-- 1 schaefer schaefer 0 Jan 15 11:22 two three It becomes another way to quote spaces in file names, but only if the file already exists. torch% touch (one two) zsh: no matches found: (one two)