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 7619 invoked from network); 16 Feb 2021 21:35:27 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Feb 2021 21:35:27 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613511327; b=eEZ9Sk7riobxpu7B5WKMlzQD85yPXMQt09guxsadMLqTUpVCIq1C8t1rhu2FYTdX2MtQcYX+J3 Dz9Nf3F6p8D5x7V+OF0muhrJ2fzoj2Tfx7DMKNRUu+jrlVZVH4qD5knPaJAOHSQ386wsog69qh kGiYgaDQOdx1vIMyB38j2csIoY1kD4ozlhtL9bMlSz6ddlDRiOoBVD9nxvxrdqQMDJvl5mHsWq sriZXsFfPX18yhxUiI8+3ezIvDR3lsCHIOBxnNSTkcn31YpmE0GAqOFxdfYroPf7CZOVHBXBuk RWMfW0071Mb0GvIebYJacqRxjP/b1H9SD5YOqRKEOw7uUg==; 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=1613511327; bh=UZJwGviC2Y4rgmKK2H4mViBf/9vchM+f4Ax8mRRueNw=; 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; b=Hd2pZUF8xOddSPPb28WC46p05Ie66vb5jcjajN9Ja2UN1Q0HEVkOi1DQlHUyb1SYuMNY/gp6Yz CeZYni98xn1LLVRNq3pCDiZGLXZDTfEgJ/ELzdNSSdySgJngXvJxwCVopULKp+XB6mKamQh4tx gtLYA9ffNmNccPbsGzn1JtT9lUNQOMkCJKQnqwQ4f+UoR31bOJGTfb2WlzYEX0iW5SXNN2IXkw cZAl3/IJzDwtBadPYaelzIg2i/YIXyVUIoKrIWBlFAknBro4nRhW5W3ac1JfbapgtAJ6BhQ/he 8jGDfj5nOBL5tXSVHVDP1VhK2e1HXU+gYF24KY7ciPNrVA==; 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=D9K3QiYU2ZSmuAwu1oAVcwiK76EYXw3MUwFllKr/3Pk=; b=nW98SAgk0r4xL45ib9ip+kN0Py nKUiXLfSl5xev2wMpPSPQhYxl55dISWEeVr2w59rFXbgbGmAv0xaUoL1ypmm6Vxm63mJZKMqQsFpX ixQFw6TCqoqRS4c/j1FsOL0XjFk17YOrPVcR3HUa8FeoD6u+IuypVDy6fBCpPf9FfWCAcBinJUr5k uVprwHmsUuCyZ/ID8LhXRx5qH/olvPtiCBiPv8VBNcI0Evxaeq0Ll7/8/x9Z2krvnZlUfmlxifXF4 Gi8FUxyHt1Xt+HFh1HzTUalpmtpdcGNQCQ/ajc4jwIiuFYGOnFZwr9onXfqPRgwamsoHW5mJpoVZC kziQOM/Q==; Received: from authenticated user by zero.zsh.org with local id 1lC808-000G0T-Fm; Tue, 16 Feb 2021 21:35:20 +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]:37104) by zero.zsh.org with esmtp id 1lC7zq-000FXz-9t; Tue, 16 Feb 2021 21:35:03 +0000 Received: by nexus.cynix.net (Postfix, from userid 1307) id CA8BA1BC115B; Tue, 16 Feb 2021 22:35:01 +0100 (CET) Date: Tue, 16 Feb 2021 22:35:01 +0100 From: Juergen Christoffel To: Zsh hackers list Subject: Re: Block comments ala Ray Message-ID: <20210216213501.GA12788@unser.net> References: <20210216153049.GA8000@unser.net> <20210216172132.GA439689@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210216172132.GA439689@zira.vinc17.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Seq: 48077 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 16, 2021 at 06:21:32PM +0100, Vincent Lefevre wrote: > >This could break existing scripts... unless a specific switch is added >(but more generally, you could imagine a feature that would optionally >preprocess the script before it is parsed by zsh). Correct, this might need a specific switch. That would suit me fine, e.g. something (similar to perl, again ;-) like require 5.16 or even better require zsh 5.3.1 which might later on hopefully lead to some shared solution like require bash 4.3.2 and could replace incantations like if [[ -z "$ZSH_VERSION" ]] ; then echo $0: need zsh && exit 1 fi which I currently use to make sure certain scripts are not executed with bash. --jc -- I love deadlines. I love the whooshing sound they make as they fly by. -- Douglas Adams