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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5423 invoked from network); 22 Mar 2023 23:07:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Mar 2023 23:07:51 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1679526471; b=dVEqQvXh2odGLufCawJ7+HWsfExqasP61Rj5XjUDj3s3F4ak8X+3153yi5+++ufqxmt4VyWWi5 UJOHl1wNf93URbl3PPe33AX8D4EtPRJwB1mT5ZHhIJLpHKcnZpP0eJtDQl32OIvs1wg1Clrx9c CVZpxlem5EVW2aHOvjvMwnwuWz1xrkP/yTF+biEQjFHAi3iiFFXrxLMJfKLqKptVpMEqcnqoA4 YMp2jYQS0KU5N3V9DYRGjLYmrFNTyVfIw8i/X7ZHKqR4ESk6qKNYIMKlGwpr3UnlZkZl8Vdb9F RPoe9aWLSG3IYaGXh5FGr7k9OsVbxTo19SHyPBYUfuVbBg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f181.google.com) smtp.remote-ip=209.85.219.181; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1679526471; bh=2iv3FZcqzTLkrVfVhnO/i0Qq3aeLznnAGtv5Deym9Hw=; 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=LhHK6CWUOj4wBNSQ7B86rDFUkCrlGFZIEpbfv7HT2wuwvtQIMBAqCoE4zFe7zFGX3hq+kygPx6 8jWIY121z2Nq9vjcFs/tw7yfXXY/zCzgIFP4OjZWCOb+tJYAZzRqVsk0scQ9w5/1mVW5XN0h7d Cn8bq1+VvNz4j7k08w4g+FjzBsqZ+cRvFcu5cLzTfcGiIRkCJFPSj8NOzmd/GQSc3TMuAa+z1Z 40mnrN4krhqZWmlcni9MYFMiY4QOxftLQMxBAt60TF7VgNcSAXPSn9ZbxStlx59cZqeL5lALMo sHCZrL8baPpl2inyHp8BdGe/UGihSkg2x65WQGULrvCeqA==; 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=Y2Ve/6vv6o92gaCLOtQ4wpGSfqMOpjhP376OlA5GGr8=; b=hiMVHvmJTikmGYJDfiXTnOOtBl 1mNYKU6ZY5KwcpKnrnBuMunTRSitbMsSPtXsDLoExl1cymwEIWsFE//w3U/xVT8UI5N2vjNwLv0ik BPpLXXMvFz3PV4cxgcexnIgww8J1Anrvt8+Gd+MdvcY7lGEQtPZPRlyBR5OYzes4Rpd+KVOwfKYVJ v9fFRsGgfF8gqTcB4YLoLC+DpnEnZe+gitU/liHHF5BSn9OQ5iNmyC01TlFSTViN7g4zX4UkF/Ao3 AEuZ2vjC27upL7KriLAqP4XpnAvGrviEn6L2PVJIfx2wHJ94byRDxmmSCXRy5ATVB5q5dk4cV+yeZ datFvZ0Q==; Received: by zero.zsh.org with local id 1pf7Yc-000OEI-Pk; Wed, 22 Mar 2023 23:07:50 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f181.google.com) smtp.remote-ip=209.85.219.181; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yb1-f181.google.com ([209.85.219.181]:43521) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pf7YK-000Nv9-8s; Wed, 22 Mar 2023 23:07:33 +0000 Received: by mail-yb1-f181.google.com with SMTP id e65so22885624ybh.10 for ; Wed, 22 Mar 2023 16:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679526451; 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=Y2Ve/6vv6o92gaCLOtQ4wpGSfqMOpjhP376OlA5GGr8=; b=T2dsfRft2HlYaeMxz0iQQlpc7Or7KjzVk8JeeInMLTTsiTtoo2oiJdretWYFbL6sYU etA81PNYRWAqX/9ln6Vm4jlbyyR/p2hE9YCfYbuzq8NYgPB+G+JdPVypFfKInvFwQWQZ dGB1WypvoNcyuLeGcigF4mLSfR2dqigBxi69eu8Iy40/p/3gcaSX8FLjzusBD4n3wpXq PFjsiuSch8+X/I5ZU4baRl3xYPnh6rIosDqmmx2KE1fa0TgyPGpIeDqIHROAp9ZSuUkA R1EJaZoUbrFq+Q52w7/aeTmtGRNJ5c8DZGFLZuT3pf8eW12uOV431/gZz2GJuOUB1dxg r53Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679526451; 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=Y2Ve/6vv6o92gaCLOtQ4wpGSfqMOpjhP376OlA5GGr8=; b=dW4z2Fvc7PcN7teVfwC6RYcocIBcnK7Zrg4Ka3Sj12cSqNJEupnA6o5COur80G7h6B VjgG8ZbEBO5483CgpF+Tqs+bfiiK/K9f9ZBAGbTOr0Gs4kOvV6D03ZzlH9s2mE2EG1c4 guE+zq/58MRBpZCoJxPadm3Y5uf4TGFYjJKsL67i2mGFR/YXH4M9eH5qzTlI6N7cNIg1 yAfnm7ZMWQDReM/oX1rFFEv8CMJ151jopVT79jDFQ7p23+BfNv0OlpqH8BCeJLz2HqNr aOFMhflKI0ACYniQO/jloypoqr2li059vSfrdbvkwZ3ZBAh8/Y1oIKv5p4433rShTCIi A/kQ== X-Gm-Message-State: AAQBX9ceGZlAk421AFZZDfCtF6WLnP3pSRvcoHLe/iFwOqhBazbhsClX Zf6y/qO66QrW1NFepQWxujGtIAG8z27Nb2VNO1ye3O/aMZU= X-Google-Smtp-Source: AKy350aCIJ1PNy1MOb7I2tteA7XupSPip6rxsdKrGgtJvMC+yaLXWF6+xV7BvvvHcrJpE4D/Fcw2fGLwa2UP4B4Acg0= X-Received: by 2002:a05:6902:100d:b0:b6d:fc53:c5c0 with SMTP id w13-20020a056902100d00b00b6dfc53c5c0mr860759ybt.1.1679526450923; Wed, 22 Mar 2023 16:07:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Felipe Contreras Date: Wed, 22 Mar 2023 17:07:19 -0600 Message-ID: Subject: Re: Weird interaction between zpty and trap To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51596 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 Wed, Mar 22, 2023 at 4:06=E2=80=AFPM Bart Schaefer wrote: > > On Tue, Mar 21, 2023 at 9:50=E2=80=AFPM Felipe Contreras > wrote: > > > > Should the command executed by zpty keep the EXIT trap? > > Tough call. It's technically a subshell, so by that distinction it > should follow the rules for subshells. The documentation of trap says: ZERR and DEBUG traps are kept within subshells, while other traps are r= eset. That sounds like EXIT should be reset. --=20 Felipe Contreras