From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 78BAD22092 for ; Fri, 21 Jun 2024 22:37:28 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1719002248; b=f7sjSDo4xKutNOXy4xwWl+yvE4UiSFVrPVWxwet7yD0ZN2eG0G0Vkil00Pw/QiBPdMTTGYHXyF tLUFgjjSVf8vJyu4gtbJss4OvtmStxpSCa7JeBEnLVQfHTKykguw/gxuTOnBMvyWEAFwvO2oz1 Y1l9QYDHtx/HAVNYDi1XdynDY8h7daBNAqTVbCPvv84O0XBu+PPra5ObQFOSlExKtj9GXYzt6B bRsAI27eqg/FSht4ROXGz8hX24znc4jFI9hxQ/OjgtkePmmaU8uxhyoys0dvXw7KtPTb66svhy tmfJb5W9rw5Z9lj99ARGHYoO7Ox4ay5Mgyf5qPBl4Ka23w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f49.google.com) smtp.remote-ip=209.85.167.49; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1719002248; bh=Dj9WrTPRBc7ZbWdaVhVuolZkpV3Gi1e9XQoNIF+N0hE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=T1c1wE7+KqryeSAQUz/MxWPL7jZbxoXfPloMJvcgIw3pULo2vcqYop/TojeO9QpFAnuOJjgve1 v9ujKOobtjg8vv1M//1Ll6I9lC6rhYzcqvN7VQVlTPcyaVto84MLHlfvqUl/4+t5chjl+0r3x3 HUecO1rnqwMjTViBkCn7XGXw6kk5oHR0rMybrci7I0eISotTu9mX8t6Hizo7RYKrQnXv+kfF9J +RtlrbTGEJa7IMi2+F+xUIi+lhyPvZn2N8qjbxREkSDNDLJhE/mCdTvyuufGBr1iS+iUmL49jp RQv6sPwTTEx7i0hsNuVVTqKevSxcm+YTs5vIwyX4AkFY2A==; 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-Transfer-Encoding: Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=FLrtId5tJe+1wkiJuDyOfuR+Idd8Ka8+FzUvjU3vQx0=; b=GKHo1ZWE3OEFoTohsIVSDNO+ik dBqCxQz390xUNMvFeyJfovpXrO3cOVLOTz/4l7iWePlNVFmoVoBoFNPrymqSatz9jJP/aYa/ZGiL8 E3RWTXtaUvCKMQZLihiM9bCRrOrDye2o9EXXShD6CCaxMyhIhCsLOXLxEziC+QRDVUPBBr3+pYPC3 No9j1MdEIglt4qx0HbJWVrpZYkTyY8wDXpuq3Ss5OB3/VhJ/ghoW58sIH1RI+o+FOkVCe2Hh94vOW aSc2AGOQzIZp9LKSIpwlkmruH3YuB4Llr6etapc0rM5ltd0N/kPgCaGTgzgl1mihwTeLDGZw/FyyD X7+sEdiQ==; Received: by zero.zsh.org with local id 1sKl0h-000ICv-VP; Fri, 21 Jun 2024 20:37:28 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f49.google.com) smtp.remote-ip=209.85.167.49; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-lf1-f49.google.com ([209.85.167.49]:57397) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1sKl0R-000Huq-Pk; Fri, 21 Jun 2024 20:37:12 +0000 Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-52cd8897c73so1077239e87.2 for ; Fri, 21 Jun 2024 13:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1719002231; x=1719607031; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FLrtId5tJe+1wkiJuDyOfuR+Idd8Ka8+FzUvjU3vQx0=; b=tPkFmjdrkDQMsO/RA5Sc9cfxqLkyQ/D360wa/hX+EMs6GZodcR3R4wJjm8i7zhUz2B ao5oL5zXgS0iGkXVJFL6ANMxt3mn6jXYb/q9WBIVg3Uvm0EwhcRZUmE7+AAGSr/3RqL+ aOvZ+jU/nyGnMrBIpJeFsKLriIEn0k/DzPZWsPO6JcuJsKDQAzSnDoDZ5rc/X/7Shoyl Pn66Uya/Kjrqi2Xn1ijnc4BvBSj9yttWk9QLDJnlIKNcTOw+uR0PWo5zn8yfsPZksqeB M7IgvKExv90eNkQPKglDiR4TqtQorGlDwV2+JefpX6SGxPgvwhxqoInpfpivnGhuYvDM DxsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719002231; x=1719607031; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FLrtId5tJe+1wkiJuDyOfuR+Idd8Ka8+FzUvjU3vQx0=; b=lkU+6nkVMM+2jyoJeWsfbD5A3Zzduvlpuxn55TZ7BvO/xxiYsJfavo0oBKnR5lx4zh +zGE0WbwPZt0sMxQsqiG9s97MbbnTSppfPUbUN2HuUWfwdaU9igALqQbfGMcnKb7yOkx 86mTziOT5UxtxsdraEJKdOeJf6x85KQlJTcQfRkhyjK3V53AQZRRrQk6sTs7jLV3Ee3/ tHQP3W2l/FmTbMTmenUHyLTbDT6GC52vraXa7DctuZrOsNl/oah0UswYHiM9tr4q8d6H 1BgqtSfvQYJpK29FMQrMrXumD32mzBrvE80B56EMJx7IZ0FdF+Ys2IImnrOweJgnzFKx eTKw== X-Gm-Message-State: AOJu0YxIWC0TRFXiN5S6XKAhQPOgUkXs2gS4KgK0MLtGCw+thecE7BF4 xHQyuNOAj6MmTd3GIvfbW7kHHI4bq5N/86gO408tBs7GrUJm0gITFd/1gprgUWRK+VPQtYfqTsv KxBYnYvpOhJ8wqphjXQbIfZSo8ty+WAhFbXaJz4/BRxOpGkkBVA== X-Google-Smtp-Source: AGHT+IH8K2CzFvAyOvQTqUk/EmgF19muuWLrLZ2DidGEK6hWmzASsWfE3jNgDdXZFyLvGHFZdR6Hu8LeeagflVlrsZw= X-Received: by 2002:a05:6512:688:b0:52c:bd70:ac73 with SMTP id 2adb3069b0e04-52ccaa58728mr6727338e87.5.1719002230744; Fri, 21 Jun 2024 13:37:10 -0700 (PDT) MIME-Version: 1.0 References: <5d54375e-8673-45f0-b5ac-f5e0e233d56f@inlv.org> <2a5f0fa7-23bf-4069-b237-d304965f142e@app.fastmail.com> In-Reply-To: <2a5f0fa7-23bf-4069-b237-d304965f142e@app.fastmail.com> From: Bart Schaefer Date: Fri, 21 Jun 2024 13:36:59 -0700 Message-ID: Subject: Re: errexit and (Z)ERR trap regression To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52971 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 Fri, Jun 21, 2024 at 1:03=E2=80=AFPM Lawrence Vel=C3=A1zquez wrote: > > The full description of "set -e" in the fresh-out-of-the-oven > POSIX.1-2024 is: > > This requirement applies to the shell environment and each > subshell environment separately. For example, in: > > set -e; (false; echo one) | cat; echo two > > the `false' command causes the subshell to exit without > executing `echo one' Hm, that doesn't directly address something like set -e; true && (false; echo one) || echo two If the subshell should execute "echo one" then the parent should not "echo = two". Unfortunately I don't follow how any of the POSIX.1-2024 text is meant to apply to set -e; true && { false; echo one; } || echo two Is "false" there considered to be "any command of an AND-OR list" ?