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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3941 invoked from network); 15 Feb 2021 22:28:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Feb 2021 22:28:49 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613428129; b=U9QUW77Ql6nOcS39SU8VIFGjaSyIz3DPAL6pgHPXSfe7uGoN8sItcKfbJo52M5gnf8HgLrc/y1 +JCIKweOTgs1Apd/G64OTjbvRCD3c9a+gzsRARZEj3J6yjsekN9ti51FOf3005bTL2UwgFRa1b JJ6s8PSNMHPSyWZmrE9cFBb5JpPyZ8GVyTRRnGCdg4oJMsd2egXzN+mQ3jF9y23zsLOKPQoJQN O71CS0Gt8mokvhmFYnnC3I99o9fNvwArO6DQ2tnKbpf8vM59VxqCB4wtjCjEiybtxf3z9R/yuN uGhP6CfQLWowVKfHi1cKq7+Adi/HoZ8P59FAOkR95hKJMw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1613428129; bh=ptFgue9g3cNMJdIW0RKw7elVg1MlAu601RZ0n/GzEO8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=cSy4Ox85AOBVy1mAnnQ+RSqkHXGTiHHIlWPQazCKtNupnPobR99JkPDbA31MQLeMvSl85YA4br s5ADLGCbwijEmyarvIaDUr+ENKfnxsr4Qf/h9R43ACYvoCVUsb67SPQasz6J9o6W7OysRnzeNr Fmghasx2k2ohcfLd7cbslue2o8F7ZYl23kJPK67AWF8UPKiZtu1dheA0T6Hp7w6oLzXf/AkpOM V9HHdVvUW6bHMb3XtvtIGekjy4EfNjnZfGgfQv9UfUyBgnaTg0w8amZQMXgHapDSaMLmmFCbJC zE/+h545lmBkjWsHcBUyhwHLfTI0ax4aoqCHVevEP7cnRA==; 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-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=yJQlhHyXvg3ta5mhCQF+dtKGoivaSmRQypqcjTJL9oA=; b=ga67IPrZRN5MVY75aVYhwJDXWL GdHdlE2FOQUh7beff7uMPF5bu0i7PjD/P1io4Sp0qYhPlEQzvbxaNIOdICKkNpLmUx0S3ekQZE1eo 5AT4LBiHZUQKh6kwgjy4b+iY1wIO6/wnMizshGsvYMNLe5bIJuFrMRLXUMoM0uzPU24+7k9YDqQ1i aK/r/NFgqzTFvFxR571SHU8R/uPiotmCg9c5iWGRwpyAL7ufs0qHGu6F7XEsprZ/UG/TM1uulBdhb siub1SmpqHBpAICYRdteABdeMudlZp8XarlngpJqBlqSM0Qo9pLZYLhWGXZs6rXpjmJmSBzsnsY2V OJ7pHiZQ==; Received: from authenticated user by zero.zsh.org with local id 1lBmMH-000PZJ-Qn; Mon, 15 Feb 2021 22:28:45 +0000 Authentication-Results: zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:36349) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lBmM7-000PQJ-Ko; Mon, 15 Feb 2021 22:28:36 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id E1250F52; Mon, 15 Feb 2021 17:28:33 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 15 Feb 2021 17:28:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=fm2; bh=yJQlhHyXvg3ta5 mhCQF+dtKGoivaSmRQypqcjTJL9oA=; b=jlnUDJFJpTm54nCcwFcIDtLsPV1iRi /JeRZuROgSwXxP8zIA4Bol3YlUxrbWzHf+pVFUU8mOcID54iOyKp4OwarZwffUH8 eVeafgB4cWjE0+LUFz0mTouDu0QrpHsdBRaQUpil2W32p6+b55jwpLog9zgxxeNy CGLZStXBM4FFY78brlUZ2+rOueslLS1BJH/Yo+c9Y7XTAHzP8vacrDSnPyPY7GvX YG2RtGmyi3j4fJ3M0Hmo5PyH8i2jWuG5Oih7Wfdg6aj6WDCQjT8sGZmE4iCGoQ58 e/rMI3UxyNM59LHVfrr56TPQTw17c6jLmq24zDpsU8yq7og/PPCF67/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=yJQlhH yXvg3ta5mhCQF+dtKGoivaSmRQypqcjTJL9oA=; b=hiW9Eg8rkvU3U1x7sa3WF+ okASP/ixISUJUXEg2LP3uGEAFZczHsvzVpdtV3XhoW4XgBCves7ob63JF5OfN8Tr HQo0ZNicEfpA0+aGGo6t5HrnIGevei4AStIgGi1i3VvODxsQ3wvhQWQISoN/KB72 JozAwHTDaxLjMyDOm6rjCXz8Tl5PwYHplE9PAPnMWQBC2EKmY0UicJeXbUg03XAh aTgNdjSFrexwxodjq+ImCEtOxb4DNzQh/lmOUBPK6FbzFoxretuhBD9GBiQNAZl8 Zw2kbP7y6T/uHG9Yjw/9JfSX0MpoKpb2K79qo+nZRMEw2gl1/1cfte4PoMZJdkqw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrieekgdduheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujggfsehttd dttddtredvnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghfuceougdrshesuggrnhhi vghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeeuveekfeffueefhe efhfegffefvdeitdehtdegleejledviefhveejfeetgedvkeenucfkphepuddtledrieei rdefvddrudejvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-109-66-32-172.red.bezeqint.net [109.66.32.172]) by mail.messagingengine.com (Postfix) with ESMTPA id 0EAF024005A for ; Mon, 15 Feb 2021 17:28:33 -0500 (EST) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4Dfdzf5pMyzGn; Mon, 15 Feb 2021 22:28:30 +0000 (UTC) Date: Mon, 15 Feb 2021 22:28:30 +0000 From: Daniel Shahaf To: Zsh hackers list Subject: Re: Block comments ala Ray Message-ID: <20210215222830.GD4949@tarpaulin.shahaf.local2> References: <20210212074031.7746vg37xykniem5@chazelas.org> <20210212154547.iy35rp4ijaef22ld@chazelas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 48061 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Bart Schaefer wrote on Fri, Feb 12, 2021 at 08:55:04 -0800: > On Fri, Feb 12, 2021 at 7:45 AM Stephane Chazelas wrote: > > > > 2021-02-12 07:30:23 -0800, Bart Schaefer: > > > On Thu, Feb 11, 2021 at 11:40 PM Stephane Chazelas > > > wrote: > > > > > > > > :||:<<'# some comment' > > > > > > That's exactly what the zsh-users discussion has been telling Ray he > > > should not do, because at some point it's not going to work the way he > > > expects. > > [...] > > > > How so? > > What was said on zsh-users (not by me): > > "Here-documents are not comments, despite your best efforts to abuse > them for that role." > > "The construct you use has side-effects you've overlooked, which mean > your fashion of comments will backfire in a way that you don't see yet." For context, that's me from users/26342. The original paragraph also spells out that the "side-effects" in question are that lastval will be reset. > (Paraphrased) There are places where you might want comments but that > command syntax is not allowed, for example in the midst of "for ... > do". > > > How would it be different from your !# .. #! ? > > For one thing, the content of a here-document is "compiled" into the > wordcode of the script or function, even if the command referencing > that here-document is never going to execute. True comments are > discarded during lexing. >