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 25312 invoked from network); 13 Nov 2022 22:27:31 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Nov 2022 22:27:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668378452; b=iWlJI9mH3VXhYngf1X4wgQGM0MfELKLEZyFD9LdH8wU2sc9Y1iwyyR7vg9QNHgAbiObq7tqIjt OvaITFMY7Q3durexEqccA5kmgxHd0U7vKmIt9j/3pZrAzne3qCSZpCu50PcwqfPVyBXffGUpfc lnVJE4pmb/x64m1PVdzxeEapE1V+U39wTphyCyNL6tSglgruEgie3PyCqFG8OLWCDf0Lgija/Q WbCqSL0yWMtmOix7Hg3tun+uJjIroDPo2BDjS+8ID5TpFwvcB/9nEy8NB4wN3OG9gOtAr8oVS2 g871InALfvkuYv+0bcJqd4hycpglcMjKhDc8y4Zcwi1yoQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f42.google.com) smtp.remote-ip=209.85.208.42; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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=1668378452; bh=fWYIFvfsjW8bIrZKXFK3jlZtq3Ylm8wAWctn/oVxrwk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=B0Hq6iGQi9l+cOL1LFSbrwBbjR+vIo9cqmX88sUMndscRHtffqdRR9aVsgL8h/aFrD70OgMMXq D6UMsWJ368gQ42vlb5cmel23EiuiZIVfMFJVD+eEmxEiSourIZsCOGB2Kr85G6GjEK/o+RyXS4 v/UAfFXq+HAzF1G1sLedDFaiF8pEV8bDcwyLSGjWBXRC3K0nNSSvxufPyZ6NzKmuwQ5vXZ7GDO 2DZrWD76duHqP35HQhbc6Y9q/G7aPMDyUWdDmlgUSBmcj4jjkHi2ebaifDWIs3XwnBKOydLqHy s8pESnzXo6KbCdiB+N35OPI2WmhBpeHWEwKVNNeGTI6N+Q==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=TSkOqhm5MGGDoiN2Q8tWjsh8JKbFBp1sPuVEXhrYmLI=; b=QIVeRM47yqoNK1PEcald4ODkx2 kp2H7P7x0BkMsd/pHVDV4sOYwXpzXrYKzvnTNq652HSBdz/GPzZKkOT9O6AhlceFh7bm+WE+XDGGc Wqq8AGIE3KJ4SC9IIcKNvQLUiTermML5gh0hxDQmv+EOGDRTrCDqGUgmoK5PqickcXgoqSKHOLiOz f/5THymVZDwg+xOBHo5x5N6aZ7P4Gi4mPyFrvZAN3aJylknkMWkViFFlKwoW2OBUyBSZ33TbTD2sJ evC9hgBBHUtZT3SlP/LpJppwtX5RZCkL+UcPw1Cnbu2WKO/vsh5NhIMHXnaaEKpgnntxsOCXpmVg3 s/Fh867w==; Received: by zero.zsh.org with local id 1ouLRr-000Okx-9J; Sun, 13 Nov 2022 22:27:31 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f42.google.com) smtp.remote-ip=209.85.208.42; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f42.google.com ([209.85.208.42]:34592) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ouLRc-000OO8-Fd; Sun, 13 Nov 2022 22:27:17 +0000 Received: by mail-ed1-f42.google.com with SMTP id v27so14868086eda.1 for ; Sun, 13 Nov 2022 14:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TSkOqhm5MGGDoiN2Q8tWjsh8JKbFBp1sPuVEXhrYmLI=; b=0rHU8UJUUCRRsGRIOhKoWn3IOIrxvjTeWeVof46jq9evcZaWKOYlW6UiIHZpl9kSik PGBvmdFNVcSQjAXOIiDLyKZGNcA287nX0DjgKoXPuqYgbi8kkMIT/BuTtb1XR9mYmfZy 5z7fssmEv32uyQGjRamdU/wYldMoFbqB3sGOzhYBvIfyEBI9sHctdxdtJzdfcDh+5Zwp Q3VPYYb0nqdhyK43yDSh4/PRpMzTexDJZyCE8xJvjpwImShQKhZozd//u+zKbssecERx neRwfNT1Az7r989kLoMhcnlJRb69ih5SeggjnRA2vwo4jC/ixvbyTgVg5k1T0Id2BlLt exfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc: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=TSkOqhm5MGGDoiN2Q8tWjsh8JKbFBp1sPuVEXhrYmLI=; b=kp8P0eUh/oTd4HC7wNjYVDlPkoMGmVUpZq0TDM7mQrCZQW/GruG1CN7ThRntq5GyQe PHWeBZA6/+hVtx9p0al/Wdn6YBMMFYWBuwrmbJx0A46m48h/PdxQtuD/LYxN5wKPr8mX BUf4iVk4Sfp8nFqfosgSkr2IF3f1LFa69OiZgYIEyIq3ICrtVxzk18pUDkF52a96XNJj yxdmUUavNH/dqmhurYC+U3isKE3J5IMlHK7H8EYKJUWLnvgnSxycNZTHkK8dERlKo+/6 H9rAnRoKDQpYcu9o91XkwxBotOR2CTSfVz0UoQ8CwKenV2WH9q3TAzpxrGDJiHWn2qW5 j7UA== X-Gm-Message-State: ANoB5pm6IrTOZ4emccgUfKreL/A0/6CsF+FseugxjNUGGiv9Z+HLBSNC E7y9CP/7gP3TICs9Pjn1brDww5lj7J6n+zTr5VuxHw== X-Google-Smtp-Source: AA0mqf6AVmyU71k+3UmIaANOQe+Hg4KwLHbmMkD/E6mo8XpuEsFuR6XO9U+kqdtxksP7JZhjkzCQK1T9DMuXmTc/Ln8= X-Received: by 2002:aa7:c683:0:b0:45a:1af2:ed6d with SMTP id n3-20020aa7c683000000b0045a1af2ed6dmr8949148edq.364.1668378436012; Sun, 13 Nov 2022 14:27:16 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sun, 13 Nov 2022 14:27:04 -0800 Message-ID: Subject: Re: [PATCH] More ERR_EXIT (was Re: Tests RE behavior of ERR_EXIT) To: Philippe Altherr Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 50960 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 12:56 PM Philippe Altherr wrote: > > Here is one thing that could explain why the "where" [sic] statement is a= n outlier (at least compared to the other compound commands that I have tes= ted so far). It's the only case where after evaluating "false && true" you = have to first evaluate a whole other command, the loop condition, before de= ciding whether you trigger an ERR_EXIT for the "while". Yes, that's quite likely, but you're finding that with code that's already broken (fails multiple C03traps tests). You can run make check TESTNUM=3DC03 make check TESTNUM=3DE01 to determine whether an experimental change is going to regress a different variation. > Here is an observation that could save some complexity. A non-zero exit s= tatus either immediately triggers an ERR_EXIT, like in "false" or it doesn'= t like in "false && true" and instead bubbles up to the first enclosing fun= ction It isn't really helping to repeat the observation that the behavior is not as specified; getting the internal state to reflect "instead bubbles up" is exactly the complexity.