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 5560 invoked from network); 6 Jan 2021 17:18:00 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 6 Jan 2021 17:18:00 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1609953480; b=JboerTO53eY28XFW4jsEIjoqOmerTPBiRTFqFRnRc1gCTkvXEn5OUmhVPpWjbU19ZP8FMVKbcq +HT8s0XPcLIHB/niHEJOfDYD5kYrbRezU4aEGwrxouGoP64xzOjuUfLj4dN7LeyqIQxG9sm+91 ys+0C7Qd7IwG5wN1vuHX50scLQAcMGMym6M5PS8fpC+xp7WyVQC3IZXabjZt8uaMgcjI1CUeDC XgbfQpBiNVozAM00y96yVGM+yKAfDkqabvY7HUcdU93+ioMhSFC0VBzTV6dHpPwfjHOn/PXy2Z fu0S3ppk/acY3s8eGkK6dHB6ncIgHfSbhHDY0C13baRZyg==; 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=1609953480; bh=BkwRTGTRo37j9bixIf+bVMsUjVYtRjO4YP+EabyAxsk=; 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=Z2shqdMw7b4HcY9KLekgB1Xw1sLTUJarcD7OB7IgFX+OYcSGBuTg47kKPVj6MEVO9Ousx2WCck 87xdoWCk3OWa1JV3AcX15cY1XuD/uSuED3xelXsIVpuSwkyOE1sc2B8dVHftEPSFOhwBWPHwTV /UpN3B0lZZxF+Ucc38p1gClgdykkw8pIC3C+NmOQ2l2iFtI5f2RLyN1wobvNiYr65UiIccTcZ6 u6SCFFa4Il5sfQhsj1dm859LxjKRD9XoE+m+REnSFP7zw1s4vi40yMAEgZ7jjlM5itElAFRQPI 6SSVA+lkFys2/ent5VzGxoYeQjjirXDSKCIj8WdVKznQsw==; 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=rYG9bnlcolmDNHESQLFc8c39SuCJnBw1mFzmsEEUe/0=; b=UBcySulSabTppwW0dKF8/r3uug 36C/nULTggyY7GGez1h6xX7H9+hMg8WNWh0fhk01SHkvPZIrirt5zCR0DoIVSFe09ia9gTgX+Svq1 x82eEUzeUJB0q4UjF+XjHArM/ee7wRO0SUSjQFsDNZVSTA9gdty0xvbslpT0CWckIm7nlU7NBFg09 U2tonBeo8p1TgakRrhPxUmbHmYgdPOIMfxy/0qLL86ln5NNANt+czFwslvyKQy06c/Yt+EiZW9Fgu wR5Szd3LvfhcvOjF3XlE2fyxU9baimQ0eidJ7Ivg28aiGwN1u5/f//+L8G+nmfvhLJBzNUljxD8jn 9UuvnQ8A==; Received: from authenticated user by zero.zsh.org with local id 1kxCRb-000OeQ-FK; Wed, 06 Jan 2021 17:17:59 +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]:58277) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1kxCRB-000OI2-LY; Wed, 06 Jan 2021 17:17:34 +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 <0QMI00E2ZUSBWKN0@mta03.eastlink.ca> for zsh-users@zsh.org; Wed, 06 Jan 2021 13:17:32 -0400 (AST) Received: from [192.168.0.2] ([24.207.90.194]) by Eastlink with ESMTP id xCR9kYjmzDl3lxCR9klOZc; Wed, 06 Jan 2021 13:17:32 -0400 X-Authority-Analysis: v=2.4 cv=HJEGqqhv c=1 sm=1 tr=0 ts=5ff5f0ac a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=RI1tQBUR8Tt9hTY19vIA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdegtddgtdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepkedvueeuffefhfdvueeiteffvddtvdejgeeujeekieduheeiteeiheegtedvhfefnecukfhppedvgedrvddtjedrledtrdduleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdeltddrudelgedphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv 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: <2bc17f94-91c0-429d-bdea-e39926dc083d@www.fastmail.com> From: Ray Andrews Message-id: <4fa2a8d0-d5e5-90e0-b331-e7a149ec9af8@eastlink.ca> Date: Wed, 6 Jan 2021 09:17:31 -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: <2bc17f94-91c0-429d-bdea-e39926dc083d@www.fastmail.com> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 26337 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-06 8:20 a.m., Daniel Shahaf wrote: > > The «;;» token must be followed by a pattern, but in your code, it is > followed by a command («:») Ok, so at least this is understood.  Still I'd expect the here document to be simply removed before parsing.  It's one of those little bits of unfriendliness.