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 30575 invoked from network); 8 Nov 2022 19:20:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Nov 2022 19:20:43 -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=IiDJFrro18ynKVDbBBzfuEUXE5+FvzRyAH5WEuJlfPc=; b=eQmuUT1tPqWwHJ8Xycydl+9Iwd xXqLYw0Dq9SwaPLZkrBse9IfzH2ZI8ZOyWhXQHObHDC72b+qE5Zj2bXGfv/5fb6ZsAKEqF37QROLV Hy9zKzTcWJVh/rb3v4Fs/x1J0VFwjB+qSM9MmGgi8M47Jms4A+6BIErLduj6x4tQp0NsXBlLhcBL3 xzMZYghqVr5QA7NfyEtVSvUoSlIjhaMg3x1BiEzvaht7l3C8e8OESDLIDsu39RhlDpvxnj3w8cwRj 4KQnyL6a4N/MqyD7Af+uqOoSeRu6YP6t2LfJV80CCqDkiv7siW71nWSHEtHb9GvEBxwxDLGVG6Gjs 5lZFQZhA==; Received: by zero.zsh.org with local id 1osU9K-000A8u-Ky; Tue, 08 Nov 2022 19:20:42 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1osU94-0009mv-Ip; Tue, 08 Nov 2022 19:20:26 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id B638127C0054; Tue, 8 Nov 2022 14:20:24 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Tue, 08 Nov 2022 14:20:24 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfedtgdduvdeiucetufdoteggodetrfdotf 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 7064E31A0063; Tue, 8 Nov 2022 14:20:24 -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: In-Reply-To: References: <1edb7786-f0b2-4830-88fa-99a19bda39e2@app.fastmail.com> Date: Tue, 08 Nov 2022 14:20:04 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Philippe Altherr" Cc: "Bart Schaefer" , zsh-workers@zsh.org Subject: Re: Inconsistent behavior of ERR_EXIT with conditionals Content-Type: text/plain X-Seq: 50915 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 Tue, Nov 8, 2022, at 1:51 PM, Philippe Altherr wrote: > *Is there any chance that Zsh could be changed to more closely follow > the specification above? * I don't have time right now to provide more tests or otherwise elaborate, but I am pretty sure that no shell exhibits the behavior you want, and I am *very* sure that said behavior would violate POSIX in one way or another. I know that zsh does not aim for POSIX compliance, but that doesn't mean it ought to take a feature which is currently highly compatible with other shells and change it to be completely incompatible. I strongly object to any of these proposed changes, except ones that bring zsh into closer alignment with other shells. (These are arguably bugfixes.) -- vq