Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bufferwords() lexes a subshell in a shortloop repeat as a string
- X-seq: zsh-workers 37648
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: bufferwords() lexes a subshell in a shortloop repeat as a string
- Date: Fri, 15 Jan 2016 11:25:16 -0800
- 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==
- In-reply-to: <20160115094117.5fcde75c@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160115062648.GA14019@tarsus.local2> <20160115094117.5fcde75c@pwslap01u.europe.root.pri>
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)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author