From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25131 invoked from network); 19 Feb 2021 12:29:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Feb 2021 12:29:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613737781; b=HhiCnVNr4nqWAjmkF7REylOSuhauCqA443CXfgUBp81PVWkdhyg4mVfGjja8IEV3adHlodrBxY qyCoPOF7ioWOn3/qC+sHAT4C+SMLCk/Gtc28EqSJrc9bR6XVSTbki8Rc723RFZTaZbD2Kzw6gi djT4Yyeo0Yo8R0KuPyYFWodoUEJkcazUB2+H1IleOVyhS/t1o+L28pDUNI3Fb+kPMVb+fbFX9T WxO/4ZVl/gldJfzSkjiiFVlRLXwJfQOSh7XtL+l3fJcjxWTwqevL7L9KpBcu6JWXxK4VPLwGi6 70RJnrIgo8Sn21LJOvNAaxd2MjQfc7ivLL3C4KilPwNsJQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1613737781; bh=df4ueK384T/0NfSwEe1G5vZYFZOIy+v4uAPd3auOwQ4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=SAOF02YN4fweaJxeMya7EJ6ZM06A3SeEDnKpOJHAqC32w+jFeCziyvhYgndhMnE7sBY1AtqFUk 96Y7iGXagZSz9FFM5ri/RWJ5BuWmyL6VULRQBCqvPEiRGn6iAcP+TO/WNUNuEP1xTv7SmNVYhT btE7M2pkHBcOIEoUvp1RnULSBGNPzFv/RGz1ndNFWO/CrNQTBCsEeDp1e5LJKFBOcKuOSnc3UU Cn/q09TiKeDQCjA8N7Qkjp1ErpuIfgS7q7P6lJwHi8kXCaNlEgQXPbVAjUVoAmfQuzIn+COB5C uxj0n8PoZVLvEnJdcdxMn7cC30r5MSbxIT8JC7/xD9NjXQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=pEU3/Dd9+XqXmNZSzjsWiC7TVcC7+g8O0muwxF8tzUo=; b=RpZxPevRunAgbeQ4FpTfzOyPnJ yz8id3eKWpQ1Ar93nv4xwTlEH0qC2itipNcQjRsL7n22QHlgZqJfTKKfsXxkFx+ZmLvHQZzgq9WF6 AdrONJo+4YL8xyKM2ISsk+UMjdS9DQH8xhs8mLQhdv0KpNu5vPb/bJ8XhMnUGaApFnk0tfdZl902v 5GsbyxghFXxhThFGRAX9vKkcWcTaEuBDGE9OONXdyzWSA/yxYfG3iXh2SMBKHH/FV5BMQh9mFIyih FE7/VB/vvhEhbm7hmpossCCxhtS4LXWXBQjd80eP/Yej+cnkMHjeTGziua1+AgpF7rsbDCcaI1MC+ Y6Y3uO5Q==; Received: from authenticated user by zero.zsh.org with local id 1lD4ui-000KAt-9X; Fri, 19 Feb 2021 12:29:40 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:41496) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lD4uK-000Joq-Iy; Fri, 19 Feb 2021 12:29:17 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 12D15A7; Fri, 19 Feb 2021 13:29:16 +0100 (CET) Received: by zira.vinc17.org (Postfix, from userid 1000) id AB9B2C209C0; Fri, 19 Feb 2021 13:29:14 +0100 (CET) Date: Fri, 19 Feb 2021 13:29:14 +0100 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: auto-quoting inside braces in arguments Message-ID: <20210219122914.GB1706295@zira.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <20210218134039.GA1492462@zira.vinc17.org> <8b3a9f93-5eb4-4d4d-8312-58c371e12239@www.fastmail.com> <20210219121705.GA1706306@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210219121705.GA1706306@zira.vinc17.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.0.5+113 (9635fad4) vl-132933 (2021-02-17) X-Seq: 26542 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On 2021-02-19 13:17:05 +0100, Vincent Lefevre wrote: > On 2021-02-18 10:30:50 -0800, Bart Schaefer wrote: > > It needs to be a bit more complicated than that, because you first > > have to be sure that the braces are not already quoted and do not form > > a valid comma-separated (or ".." range) brace expression. Also, > > should anything special happen if there is a valid brace expression > > inside the invalid brace pair? Is this single- or double-quote > > equivalent, or something new? > > I think that { would just appear as a quote mechanism until a > matching }. This should probably similar to double-quote. > For instance > > echo {ab cd"ef }" $ZSH_VERSION {0..2} } > > should be equivalent to > > echo "{ab cdef } $ZSH_VERSION {0..2} }" though this would introduce a difference. Currently: zira% echo {{a..c} {a {b {c zira% echo {{a..c}} {a} {b} {c} zira% echo {a..c}} zsh: parse error near `}' -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)