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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31282 invoked from network); 9 Dec 2022 15:22:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Dec 2022 15:22:49 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1670599369; b=JSkDl0StSbl8lC5Zc59aQqHWYc/6qHaswglIROLsG1hKgcw/GGkigwjQNuyFGf0U7YJhikGHcJ Y+b5u4dRiegTOhnxK0t/w5ubglU9aJi4cMzlBli4oFnKeuDN8vBpmAldsIPJzFqKSjiYz4T39s 89PpoJlRfxjXKZPP8Vka7E+Yw5Fs5b9Qlv9fF2WbsTWUbEmgv7666gCGfnMNWeEmOHeUVe3U7+ +DiweAGVvqXNVKCPxx5xzRut+7H/zmohsYMQi21F5nLlpQUrwkXdLRSA9iGuJFefGiEy2CJUkh y425dWWFd0vGph1VOiSHB6Rf4qr1WOaWNax3hmkbyFoh/A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=greenberg.science header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=greenberg.science; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1670599369; bh=SDH9IppgCVIO5HG8TW8L+BwMArRXZPxadEHgH3OL5Mg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=mdafRkzoD1hZ/N3AHjtnSzKiTVg6AG7dQDq9ig4vPz36Ka+0GRaHilqntd21dDaSpFvZafSv4S xeobnqGHWvPPWV98CmQdVskPkJVFiCc6Qe+/zUo89U4N1J0MDLbC1MicSitm986l3LX5gmQ5iA jnNzqKFuUxvGVREXCfyZOEddizv9ysI1VkY/Poh21723TiS13YAhJLPFJd7HVvuY8f30mJ6pSy lJ1bxOPGToDVcvLqENOVd8TxGFfF/YIcLeGafn95yx2bsgpukcPj7bxh/+M4PFv8sV5pqAuKnm c8bxGcqezWpvEPQclXhyGbjP/fik7+MQKerVcpAR8t8nDQ==; 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:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=SDH9IppgCVIO5HG8TW8L+BwMArRXZPxadEHgH3OL5Mg=; b=CbksX913VtYbDXoFY7ybX3Gu/E 0jRF9Npt+GlndG2Xe0V4j/KH22bUuAGZZpNO/DO3BjZulHm6E7ecZqib83Q3qx/6E5j/M3TgAOHqg TBZaQtD/8aTp2yyMYyf+OEfEzx4gVYozquULEIae04APvmEGzDqUtKyzmsGX7sL7XvTQW1SVhKTbI IlayOv06Grrekl8/KB7DCgWlo1Z/odJrFBp+PJHZ2ROv+j3oMtIImQ8/OiEcw/porT/EkdLBYMVfd iuos5HI3CjiJIK9M3x4Sby1R1u/R8B+QdvjPslj7c0DsfWYtBmxmjWN83G3afOVxhM+9ivGb4nY4r Xf63diUg==; Received: by zero.zsh.org with local id 1p3fD6-000BXE-TS; Fri, 09 Dec 2022 15:22:48 +0000 Authentication-Results: zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=greenberg.science header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=greenberg.science; arc=none Received: from out4-smtp.messagingengine.com ([66.111.4.28]:48537) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1p3fCo-000BEO-PI; Fri, 09 Dec 2022 15:22:32 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id DC2125C007A; Fri, 9 Dec 2022 10:22:28 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 09 Dec 2022 10:22:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= greenberg.science; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1670599348; x= 1670685748; bh=SDH9IppgCVIO5HG8TW8L+BwMArRXZPxadEHgH3OL5Mg=; b=v XKLJavd19o1FrW/Cqhe0QVVXweHIeIGx9YbAOglZbSsaqu+ZMYD4S3oJ6B341D5N aUK3DFyOmbAcIofIgH5575sjh9I86TJSBFuu3ZqjiObioU1jL9yibyw9Y+JEeWjq EQPjwM03wPx+FX8YpauV9kViSXmzd/10SolyP+0v8CG96J2Fyjhar5DWl2rHxf7N XbAPW+Pc1GMWZL/obHRf7UElnFqDzd35U5VMINwkTCi8n0OTxjln/e7Aeqhu0faD jqcNPBNjd/zHS9w3wroo71i4wZI3vLMLclcDE4nxMrYuKx8/3ddpEdvNiKfhUpV1 0bj0i7GtvP/MfP1CO0CGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1670599348; x=1670685748; bh=SDH9IppgCVIO5HG8TW8L+BwMArRX ZPxadEHgH3OL5Mg=; b=mHQFKxF9F4wdGbmT3YwP88DoJfsewD56/jeFUrIKfFWt 69fpTQ5ccxw3CRCfKz86eOPOsPkFKwowhYIye26EmE199lGy+ByVJDXJCn5AZhNP h7k1qnkgThYwH+slKV3TJgz6jxS1lR7g2CsO5CsGT3YU50cwc6Uuwi9e/h3DUVK1 rq6194oXHK5WPQu8yHqt6/EfkrL+a578CYhm5BVCX7vi1saupSY4HEelKsG3eNJF GzY7Vuf8tQFkWtX0/+AMoU6XYdju0/3iAznOsxdPETnVa3C6/+kGmIeIdlgLy+73 nyJhFez45bxzymxDugD5yQQa8g9FuoQexxgmP6Hf5w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddvgdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepofhitghhrggv lhcuifhrvggvnhgsvghrghcuoehmihgthhgrvghlsehgrhgvvghnsggvrhhgrdhstghivg hntggvqeenucggtffrrghtthgvrhhnpeeggfetgeefgfdtudffieeukeefjeettdetteev vddvveeuvdffuedtfeeikeehheenucffohhmrghinhepohhsughnrdhnvghtnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes ghhrvggvnhgsvghrghdrshgtihgvnhgtvg X-ME-Proxy: Feedback-ID: ib2794684:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 9 Dec 2022 10:22:28 -0500 (EST) From: Michael Greenberg To: Stephane Chazelas Cc: Bart Schaefer , zsh-workers@zsh.org Subject: Re: `return` does not behave properly under `!` In-Reply-To: References: <20221207084255.ykkg6cgzn4nqc73f@chazelas.org> <20221207160113.ol3lcbm6p7xu3rru@chazelas.org> Date: Fri, 09 Dec 2022 10:22:27 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Seq: 51155 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: A tiny update: On 2022-12-07 at 12:10:55 PM, Michael Greenberg wrote: > I think there's a good opportunity to have shells in alignment here (and > maybe make POSIX more explicit): if zsh folks agree that return should > not be affected by an enclosing !, we can align bash/dash/zsh. (I'm > hopeful yash folks will agree, too.) yash maintainers agreed that this is a bug, which is now fixed . Hopefully zsh can follow suit (and perhaps we can raise this with POSIX folks). I'd be happy to try for a patch, but I'm not at all familiar with zsh's code... Cheers, Michael