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 30664 invoked from network); 22 Mar 2023 22:07:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Mar 2023 22:07:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1679522836; b=Ct1A7Fuyf8Sfcq90S9KV3nkMI/1SYxCIbbQrLwpz3/8qUF1bpYsu3Q6+6XwG4/eUo8rsQbDPy2 s03xcUS60iiJrijNhIg5zVXPQsY1EglWY9a1CHEXPy8rwErwmCd5OOkjv8xNUtKeSA6WakeCFd C27c11QVCjXX5ofG1MXGemcMIYW2Uurt4O6z4ggg/ui9PDi1jsL6XT6tqMBaxKhiuBZLkH2S4H aYK0/Eb+g193USr30eQ0ZAB7Bd9qhiBNi3H5Lt4HQ82S/o4ooSPL5decl8MBwAziAD5u195WYH SWucpxVIlDz+1xLWmFujE1a2NchdJzgwCfBfbAnDgyIAqA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f50.google.com) smtp.remote-ip=209.85.208.50; 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=1679522836; bh=ShfphrKL8tOrATm/6n4HbKPgkC+jMxO30AprlbXte8Q=; 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=T5ATzRKPIJAyxUl/tUZHhgoU8/3SWDGb3MLHO1Tz1D1Vs1ymjHPE6N1jI+bboGRTZatQknS6NO 0wjieAGrBWotDfTJFpl9Y8a42UjB/kG4ZN0okJyTntXrDYAcrwZ6hNwRWYdxKC3wySVO/MUAYy jgtcyaYaX0U5L5wdUIdaby3E6ID7Jf2UImyVhrH/JPqvG69P6bLwLjVPq92NR0988upIODN9oc fXVY8azBJbpy2SNfMwVhg41A/cYpAjTKsOHBJRHrxz+ahC285lAE/mS0cPRxHUnZq79A2v7VdI /OBjNh0jgbCFhOXIhByL+prI3s6L2zgsZoIihekEkUmhig==; 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=4M3m36qjl5IQ7k3BQ5foPz0XZgDWaV1Kcyzn5CQMPsY=; b=Cl6jDx5yTUn8R7RoumHJCueBSY d3UbNLQjYWKQ3BgBZeyXKIu0DxkXyemJeFmtWI2yNkQne4P2nZ7t2uagBdFlP7ST27rZ8u3K3SAMB JXq3bUdK6TuPNp0ESGPPMlNzyfxTv5hqZMDH859+gxUtQ7JYWWe/OreV0yL6ZC6N4nrfIJdFHQaio 8rn5RTta8KbP39B5r93Lg158wkn6J/rbXVo18KOERgOyu/AJmxJcdFDkh3i16sNuYygdX98hzdbqV gzg0lqo9xSBUxQoHRPQrkdKg3rBlQqcLhbr3rHDaIltIV6+wgxDjDJ9EG0phcHl1j9rynbFZRn3WK qRldEh1A==; Received: by zero.zsh.org with local id 1pf6bz-000MH9-Cn; Wed, 22 Mar 2023 22:07:15 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f50.google.com) smtp.remote-ip=209.85.208.50; 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-f50.google.com ([209.85.208.50]:34481) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pf6bS-000Lyo-BR; Wed, 22 Mar 2023 22:06:43 +0000 Received: by mail-ed1-f50.google.com with SMTP id b20so45964545edd.1 for ; Wed, 22 Mar 2023 15:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; t=1679522801; 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=4M3m36qjl5IQ7k3BQ5foPz0XZgDWaV1Kcyzn5CQMPsY=; b=a0fo+LfZsfDhNs1zPUdxSuDl0Bz+fSE2Xd6yo2zT5MRH184wmEQoul7s8/ic3V5E+X P3jauhQqKN9ysOuSGiYJ63akcSxKd0LJinH/v3Tg9SE387jnDCrThp3zuBUktnYIOxvl 0Hrgoyb7ou3ZCCxHtLdPbYZr1NV029/z4zcgTVq5GrzJcAeyO1EERLjTL7dQHE6KZotS x9JeWRMRPYPYi86M+kiyLiF2mRtq4EZhKO6EBwJNRDzr6NbPBrsG7tTB83UoHPO04ihc Fk2qICNgi2EQVNA6NkE162sQ0i73QZqM0HqOdwxIaH31RN+O40U92qOWc8lbaM8KdoLF 7byg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679522801; 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=4M3m36qjl5IQ7k3BQ5foPz0XZgDWaV1Kcyzn5CQMPsY=; b=PL+zMqAGA+EtIaDFTH6eCARK9tlSZO4Bh5qESwnzX4tIvnPGBS5BzAEaBAxyrNDrRd sEqLTEK1QFzDgCh/xyYDpiuNOjcAzi3zKvpn2jo0RkI9pQBMlx/HpM0BbmG8VNO5kwc0 KtEh2P/lOnQWRyaFnG0gOpZ/lz5U4nKgv6NUC6VJLoBFHLWZSNezhYpmpk6iJEZZlJRj EB9SazHRqDvNu4HvVJBFCp9J0rgAOlEYBuP0MNsspC9LRtHxx7toRSvqhxCQMqDMh0Kg Ng29+Wq1c6FKlGS4t/G9Gz9qLb/Hmgfgw8POXgVmN10TvM7xVMzX6s6WpkNAc97HWFev 8VmQ== X-Gm-Message-State: AO0yUKUGIrfPTkz7iVMCIqe3KeNS2Tp8nZrM7lYR66zUwh7519cxD48l tQYuChOsfkGBZH08+0JFb+8UI9AlgY3HIzF7sMA81grucr6O1wQi X-Google-Smtp-Source: AK7set+MbzaH9rQj026j/E68AtKYcXJwGMvJAW7cCkdL91T7w2zDwSWil2WrBSX+3JSZ7yLecA1Lf8F3mZgMNU6NqGc= X-Received: by 2002:a17:906:3b1a:b0:930:f984:c56f with SMTP id g26-20020a1709063b1a00b00930f984c56fmr3875289ejf.12.1679522801511; Wed, 22 Mar 2023 15:06:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Wed, 22 Mar 2023 15:06:30 -0700 Message-ID: Subject: Re: Weird interaction between zpty and trap To: Felipe Contreras Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51595 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, 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. Aside, I never really thought about it before, but why wasn't zpty implemented using the clone module? Just to avoid a dependency?