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 26836 invoked from network); 16 Feb 2021 15:31:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Feb 2021 15:31:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613489478; b=VyWUUXxA4WDcpXXZtSvgkSIeSk6eXX9qEcVqKe/335Z/6yWUdGODyTXbYJJvqm/A2AAJdO2tLN AkCZ42C55oMQLD6TWQXzd3wVippkIxk8nXcBXIyRc+Hsjs8UzNp18MnWN00f4gquFZgLYHVAo7 n04nga79MSIV/uRJdkFiCwyLexDEUn0ttJW0bu/3qVoIIeM7Nw2Ql3X/qHK0pvEC33KOgS/Npv p6DwNemBne/mKDKPCj/s0UyFhYURoNcfDjPJaOulHgiv4/Deod2XLvImI2Z5RM1rlLBbSEl++L FrEyNIITE/CAqdMVwFMlrAtrvYg8P/KpC53+FCiqkgXqOQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (nexus.cynix.net) smtp.remote-ip=213.239.194.196; dmarc=none header.from=unser.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1613489478; bh=7N1IEMMlEQWhe8uWPWx9wNkxEo/EW3qMnR4l9SxoH/o=; 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:Cc:To:From:Date:DKIM-Signature; b=BV2oGc1p+8hQrB/o32EVzTTtVzqKVjEsJFB2I6uDGo+mBG22uIFbJl/klgB15+PqluABWwMRnu /G9gLT1gCkXvHLqdINpLO4pLyI5eioa/HZ8HUMokIKgJhRb3PcxLRXmLqxdpJ+C8psMAURAg0a nn1sYEt7gZk6mQTZx9s7pWF0mDaA3Iq2ZCCcQqTsm8naR8EKs1yUoeHMpBd+Q25Pbj1H7IAfrO 4FBX1SCj6sEd+cxCr+S93+xXE3RV4cSTRtp3IxMSOik2nKYzV6amS0b6fCqPx/Wnzn1oO8IL90 wZTDhRTo9oR+KT13TsTEDHMHNo/kO4sCd1b6SVv6OltzXg==; 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:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=0p4dxWmR2dJc0VqFie5lhRlfFJngn/5IArrKo3JY928=; b=vzx8dGQoiLN5/EylVNSWDxKrUF jWAdqGX5NF3NUmzhsoZaPIG+KhFUTXjaJ6ShWMvYQXYl1ntlMJoRC5iOczzOuPqICDbp7CPp20tDH ZyE98Gst6wAlqtLj0gnIvG++OXQ60raq47iP0aDjWdOY+eE9L/M9jHZIgiUBKDcLUwWA0Rz3ITH5K SXAxbA8A7IgQJ56qHrXcw6P1N2dak/t3y2yBEiw8oL672MEM1D0k/yYdeTO/dZc53tCMcLExc8kX9 2t2WHgSa6uHBXF9TTx27bl9VWeJTn1O49xGoiH8p7yTVHTlIqtjZBzUfEBNfhnFZHAuxZIFdOJ3Hb vckJHMKQ==; Received: from authenticated user by zero.zsh.org with local id 1lC2Jg-0003Ld-Rt; Tue, 16 Feb 2021 15:31:09 +0000 Authentication-Results: zsh.org; iprev=pass (nexus.cynix.net) smtp.remote-ip=213.239.194.196; dmarc=none header.from=unser.net; arc=none Received: from nexus.cynix.net ([213.239.194.196]:36904) by zero.zsh.org with esmtp id 1lC2JP-0003CS-IW; Tue, 16 Feb 2021 15:30:52 +0000 Received: by nexus.cynix.net (Postfix, from userid 1307) id 9496A1BC115B; Tue, 16 Feb 2021 16:30:49 +0100 (CET) Date: Tue, 16 Feb 2021 16:30:49 +0100 From: Juergen Christoffel To: Bart Schaefer Cc: Zsh hackers list Subject: Re: Block comments ala Ray Message-ID: <20210216153049.GA8000@unser.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Message-Flag: Bitte senden Sie mir nur Text-Emails oder PDF-Anhaenge! User-Agent: Mutt/1.5.23 (2014-03-12) X-Seq: 48069 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: On Tue, Feb 09, 2021 at 10:05:13PM -0800, Bart Schaefer wrote: > >Any other thoughts about this? Too horrible to consider? It needs >turning off in emulation modes and I haven't gotten to that yet. While I love to use zsh for various scripts, I switch to e.g. perl for more complicated / larger scripts (because doing everything in a shell looks like using the mythical hammer which regards everything as a nail ;-) That said, wouldn't it be possible to augment the comment parsing to use something like perl's "plain old documentation" (pod) meachnism, e.g. #=pod This is a block comment and $foo would not have a special meaning inside it really #=cut This "#=" would allow to introduce more control statements inside the block comment later on, just like perl's pod, which uses it's own little markup language inside those blocks to mark up text Cheers, JC P.S. Even the use of the here document for block comments look less horrible to me, because it's easily recognized when looking at a script. -- It is easier to port a shell than a shell script. -- Larry Wall