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 31770 invoked from network); 13 Nov 2022 23:13:11 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Nov 2022 23:13:11 -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=mz95+W4Sds4wZ7y+NwDm/xL8qLeLGXCPLVLpJgxt+J8=; b=Vx4A8Ti9DPZNRHLsdCudk6tAtC luFScdMEZcbWqmsI2GL6u7Guev7X2nVOcHCpqYg/+buwtmPJePuCMUnawjOprwSln3uyng8zqgp3p HDJES2LYSzhKNtdjU8Di9Pl2VhzA8EJWQR2L+EEZKGfOoYoibzj7JE/qHUu2DS+tdkNfhZRWnRNG9 NTJGNA8K+tBn6DIZJBsO/NSHayObpEzm+3RijU4giqqPqZ5jsopTaUoUg2q8hVvcQYzcb/A4bh43B TuABqf7CXbTJPjJgTuX9/uU3zChRRvKHvNz5s766dxlZfdQguZCiknK3i5yQ4LMjUnr+tdNXuVwJl teUSPohQ==; Received: by zero.zsh.org with local id 1ouMA3-0000M6-BB; Sun, 13 Nov 2022 23:13:11 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ouM9m-00001m-Qg; Sun, 13 Nov 2022 23:12:55 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id E411D27C005A; Sun, 13 Nov 2022 18:12:52 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Sun, 13 Nov 2022 18:12:52 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgedugddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreerjeenucfhrhhomhepnfgrfihr vghntggvucggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenucggtf frrghtthgvrhhnpeelkeehjefgudefgeekueegudeghfevvdeljeehieeuffehveejgfeh tefhudevhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudduhedu keejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrghsth hmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BB98C31A0064; Sun, 13 Nov 2022 18:12:52 -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: Date: Sun, 13 Nov 2022 18:10:22 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Philippe Altherr" , "Bart Schaefer" Cc: zsh-workers@zsh.org Subject: Re: [PATCH] More ERR_EXIT (was Re: Tests RE behavior of ERR_EXIT) Content-Type: text/plain X-Seq: 50961 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 Sun, Nov 13, 2022, at 3:55 PM, Philippe Altherr wrote: > Thus, compound commands other than subshells never have to trigger > an ERR_EXIT. This is not necessarily true, depending on how you attribute blame for what triggers the early exit. In the following case, it wouldn't be unreasonable to associate the failed redirection with the "if" command. It's certainly not true that only simple commands can cause early exits. % cat foo.zsh if :; then : fi >/no/such/path printf 'done\n\n' % zsh foo.zsh foo.zsh:1: no such file or directory: /no/such/path done % zsh -e foo.zsh foo.zsh:1: no such file or directory: /no/such/path -- vq