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=-4.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28971 invoked from network); 8 Jan 2021 19:40:31 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Jan 2021 19:40:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1610134831; b=iLrkqGGgfuGbt91Xh2dsncHrNWuRIZrAe9OiJv8UEsynUnSfgP4WOg1mYEeE4/PKlNJTQ2Zy59 qYdBWGGDYFlSufvle/C0CddFIuKN3+kH52oYvZCH3N2gHmzjUCN1L5w8pWjNBsmcRmRKHjUQ3P QuTNGeLsS449VmZqyQ2wQy4ZZqX+BbmvnUHiqO2pzfvfb96qBtE90NAThXc+RhbgYmuKEd+16Q Z70P/4ry4lSnZfuZ/8hQb29nnFEKwbutrOBHBd/uppp+hYMMkhAi3E5WnirlO4qujT9cBI2jBo JBLQUKf68B2kpKgfrnC2tNUg7F68wWJC92PlITaOpNJW3Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1610134831; bh=RLQMjsqzaB86moxcOOHe695uJyyzd1suUEabMmIBEUI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=mijVeAIo4kWW8mbuCwbGWv5NSnDLAILtwDYy/aegaVYtq5IFVSagAnqHRLvNSB32y8Ct0ff48e bINkH+FOG4sk/L8wqN2FcR8RXtkVZ7XTmJaaCt6uopz/5RWTYxjRJYLvGpueGqh9GpwNpZsit7 wf7nLrqNBmBerk9S0rKa5FxWLd6CDU+YYrmf2qLn1D2kFozaqR/pQovEHVgum92fx5FEQrQBkN du69m1oj4hE7mgx4xxHOaek8epr8Gzz6vXsxibfQFma+jyosUBc+p/DptuDSx3Jwd5bBt+AHFU HayqlP9dBICDBZdHpmbQH5JA9L5HH5iIsKmt7olffAwUJA==; 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:Content-transfer-encoding: Content-type:In-reply-to:MIME-version:Date:Message-id:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ocTlwJbrDgP0F8RnSuhP3U433WW5s3pPi/YH3UJ+vXo=; b=K8jyMoDSAEDGdGCMj0aStd+ZXb N/lho05e7niZVqj67sZpMdHgWVs8QDqNoBazrTGyRl0jrRiDhc31BvE3XvBiOumG+elFLQ7I+U+6l 5lIqAbHgDsCQ5Z2JvFgla65aaknwfYaKGVMmV+A9OLefi6sqM5AXXkgdCf5KKt/IY0N85CKy4Ruj7 dD5452t2yC3VIU0VUegx+ZZzBhNDZDMqpjFW+WkIPPuQb4fpTyuBT5NXlV9+IAfuo8dmr7ZWO2cNt gDzd8vNL21ZR5hvhnvKlJI1cCn9lOLCJ+wc8N3+qHtZl3VExDeKmxOBeuCdxjuZYrIM8Tgmkx+DNX +dZEIQpg==; Received: from authenticated user by zero.zsh.org with local id 1kxxcZ-000254-PN; Fri, 08 Jan 2021 19:40:27 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:36674) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1kxxc2-0001ho-S5; Fri, 08 Jan 2021 19:39:56 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta03.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QMM004TCPXD3KD1@mta03.eastlink.ca> for zsh-users@zsh.org; Fri, 08 Jan 2021 15:39:53 -0400 (AST) Received: from [192.168.0.3] ([24.207.90.194]) by Eastlink with ESMTP id xxc0keoCaDl3lxxc0knGxw; Fri, 08 Jan 2021 15:39:53 -0400 X-Authority-Analysis: v=2.4 cv=HJEGqqhv c=1 sm=1 tr=0 ts=5ff8b509 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=x60EQfHpCTMZCO0dl8YA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdeghedgiedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepkedvueeuffefhfdvueeiteffvddtvdejgeeujeekieduheeiteeiheegtedvhfefnecukfhppedvgedrvddtjedrledtrdduleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdeltddrudelgedphhgvlhhopegludelvddrudeikedrtddrfegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: here document within a switch fails to parse. To: zsh-users@zsh.org References: <20210107153248.GA25249@tarpaulin.shahaf.local2> <14e91024-d65b-e3a0-f5f6-8f0e55d40e8f@eastlink.ca> <10257162.hLkh6h4pyX@thor> <600797233.2799876.1610129180019@mail2.virginmedia.com> From: Ray Andrews Message-id: <19f99e83-5859-50a9-f598-fb6b633c7d1d@eastlink.ca> Date: Fri, 8 Jan 2021 11:39:52 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-version: 1.0 In-reply-to: <600797233.2799876.1610129180019@mail2.virginmedia.com> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 26350 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-01-08 10:06 a.m., Peter Stephenson wrote: > > (In particular, it does NOT think "oh, this is Ray abusing > the ":" command, so I'd better not do my usual processing". Nobody > has got around to adding that mode to the shell yet.) setopt RAY_ABUSING_ZSH Good idea! > > The second $(...) is evaluated. This time, there's a redirection, > so the argument gets sent to stderr, so you see it. There's > no output to stdout, so what will actually be substituted into > the argument on the command line is the empty string. That's quite logical.  the $() is evaluated both times, I just don't see the output for one of them.  Thanks Peter.  But I still think we should have comment blocks.  Yeah, I know it's not shellish.