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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29094 invoked from network); 9 Dec 2022 06:46:33 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Dec 2022 06:46:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=2hOCcxfhdISHhvpqGsLZVVSFvpOtYjF+xDTnJvQJrxw=; b=VnFGIg4ZsOJe/kEjygIfIakJDU vJuWjkzQLEoZk0hd70NH+vQgxKADNox84KIMyY/PB83EskH+EKTE5SNJVizV9HhHjBNeawxDL9H6k TphJbLzMXuuQzembIg/D/5DvYed6qM3F5LQJkxbNJwk6euqyiDWNRkZjnC9Q78af2ohGtq/VPNbbK +djFqiSKmygetD6ytbJU+5bE0cBvCO8iZiC/hRCPWhj2KMFfKzdF/mbYn/ylfI3S9oBv9Sdrc1EXf n0qIETiUFfswGLc+SfV3+GRtACUUEI4+hbnFsaCjjVdu4esHYBmYiUuQ2R37lq6qrqzriRWoBH1m0 O0O1qP5Q==; Received: by zero.zsh.org with local id 1p3X9T-000Lj3-VL; Fri, 09 Dec 2022 06:46:32 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1p3X8w-000LQB-W1; Fri, 09 Dec 2022 06:45:59 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 42C6627C0054; Fri, 9 Dec 2022 01:45:56 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute1.internal (MEProxy); Fri, 09 Dec 2022 01:45:56 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddugddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderreejnecuhfhrohhmpefnrgif rhgvnhgtvgcugggvlhojiihquhgviicuoehlrghrrhihvhesiihshhdrohhrgheqnecugg ftrfgrthhtvghrnhepleekheejgfdufeegkeeugedugefhvedvleejheeiueffheevjefg heethfduvefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheplhgrrhhrhihvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduudeh udekjeejtdegqdduudelvdejfeekhedqlhgrrhhrhihvpeepiihshhdrohhrghesfhgrsh htmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C530431A0063; Fri, 9 Dec 2022 01:45:55 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: <46fcb939-0ed9-4b51-959d-67339181e3e3@app.fastmail.com> In-Reply-To: References: Date: Fri, 09 Dec 2022 01:44:44 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Bart Schaefer" , "Philippe Altherr" Cc: zsh-workers@zsh.org Subject: Re: [PATCH] NEWS item about the ERR_EXIT fixes Content-Type: text/plain X-Seq: 51150 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: On Thu, Dec 8, 2022, at 7:24 PM, Bart Schaefer wrote: > On Thu, Dec 8, 2022 at 1:47 PM Philippe Altherr > wrote: >> >> I couldn't make it shorter than what is in the patch. > > I think this is fine. Any opposed? I think it's overly verbose; NEWS doesn't have to explain how ERR_EXIT works. Here's a possible alternative: diff --git a/NEWS b/NEWS index cdafd1ff5..d8b8687c0 100644 --- a/NEWS +++ b/NEWS @@ -4,8 +4,27 @@ CHANGES FROM PREVIOUS VERSIONS OF ZSH Note also the list of incompatibilities in the README file. -Changes since 5.8.1 -------------------- +Changes since 5.9 +----------------- + +The ERR_EXIT option was refined to be more self-consistent and better +aligned with the POSIX-2017 specification of `set -e`: + + - Prefixing a function call or anonymous function with `!` now + suppresses ERR_EXIT. + + - The `always` command now propagates ERR_EXIT suppression, as other + complex commands do. + + - Function calls, anonymous functions, and the `eval`, `.`, and + `source` commands no longer propagate ERR_EXIT suppression. + +The ERR_RETURN option is now suppressed when a function containing +a compound sublist (`&&` or `||`) is called from within another compound +sublist. + +Changes from 5.8.1 to 5.9 +------------------------- zsh 5.9 is dedicated to the memory of Sven Guckes, who was, amongst other things, a long-time zsh advocate. For more information, see: -- vq