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, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15374 invoked from network); 9 Jun 2022 08:55:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Jun 2022 08:55:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1654764952; b=bfgG4zfgu1+1hQO9/J4E97tEKo24UXg4LQRZQ1j15ZPvSy8g16CAeeksylFEq5E8LVHVyhgf2u vmcyLV3vu46xNct4dwI72AmQaprNcifiBcx4t7jbkHjzMXVLnBGd3EuAqoqCdOZoIy7ZKojREd dY2o3GXW0ZUhuuHlxoiMoKZxWLdHw4BQRTMHdLax0wf3EtdzCQyXOfvDfJXrNvGSQHgvqka5/S YanRkzowKNkDceNSnV7fsTal7A21DowdQ3Py30F2vTFQ5XapGzhXEsEt/acSiXqGDov7h6Oq6I BVDTW9aw6fB8NjkmNZgyCAOSPrER+Rb1tzd6JqbRw6+WDA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1654764952; bh=4tiCYZe+NbLOcPfbIbyq0Mf+2UEto4I3kYQ5SwgqJk4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=j52shClIg1uaT8oww4/IvOonPyOFDNEFYPCFukyT9z2NGupC8wCsTS3TyLR3lFlM1UdZIZ6ZuV zEB+zYQBA/F1cCuV9ukd9zLlczFFRSIPQALW+OeRa13F/8Xzc6OmHeOj1BWOFjm9aqpZxjghUH 5Xepy6MkDPsY3beD5aO/uig3aNaXre+pq+tTYzI2XpugtMwZyNh1kUVGIsFRlNhr8TmuxPW17n CRqcWTs2Zuua5edXoAiUcQsNvSeK3JIGhbjcC7ABawybox2SyLPu4h+Fhj6C8+EgN3KWkUcjLl 8pP+BhJdr3+FiGp8IKnVgGbkCeUX5+0tkYkjNzrFUYodUQ==; 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:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=UiDsFLwDpQJaE7qKO5zreUWe7AhnSMK4BYiuHrKeFys=; b=Z2jgC4yMm8gBJEibDQ7HUHLDHn x9mEhiGjSTKU+ZmKi2Q4zTcv9fr2RSoC2ZyGKJWCrvBxVtgwazstcMoDRJIneeLm5KilYRQdvsyWH dskP94XjptH4xe7Ey6p96OKKm9GnNIHJT8IqMpSaj6vr/YDMrl9RTna6cpFtsDmMLiQ16BrqCXTuU mMTTPIoEYyxW8qy7Lr59+RDW1l8WaslvgD55wk77cKJNE2+DFQLSTVcEWueq12N5Rvzmu24HIXQ9Y i8RSFrjKpcCcDymhk12ElKpgj+Jc0XPqRqCZ1P9j3vnQL1TKmw/OApu5r6Jy1bUFYpwIzW/yzoS6u lhewcb8w==; Received: from authenticated user by zero.zsh.org with local id 1nzDxH-0002wC-7x; Thu, 09 Jun 2022 08:55:51 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:45662) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nzDwg-0002b1-Dj; Thu, 09 Jun 2022 08:55:16 +0000 Received: from [212.54.57.81] (helo=smtp2.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1) (envelope-from ) id 1nzDwg-00008D-5R for zsh-workers@zsh.org; Thu, 09 Jun 2022 10:55:14 +0200 Received: from oxbe13.tb.ukmail.iss.as9143.net ([172.25.160.144]) by smtp2.tb.ukmail.iss.as9143.net with ESMTP id zDwfnl7xmv24mzDwgnxd4D; Thu, 09 Jun 2022 10:55:14 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.144 X-CNFS-Analysis: v=2.4 cv=LKR1/ba9 c=1 sm=1 tr=0 ts=62a1b572 cx=a_exe a=wuFMYA7voKp1dZz7Z+vj5Q==:117 a=wbvTLvLwOfMA:10 a=IkcTkHD0fZMA:10 a=7H6ixmLU1AQA:10 a=q2GGsy2AAAAA:8 a=0xzHu1IiA1TehqiLSlQA:9 a=QEXdDO2ut3YA:10 a=z9dJwno5l634igLiVhy-:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1654764914; bh=4tiCYZe+NbLOcPfbIbyq0Mf+2UEto4I3kYQ5SwgqJk4=; h=Date:From:To:In-Reply-To:References:Subject; b=BCRgC3AbwTiJUhP2nnY5vLBax7ahfKcwVE6r7iFkkbo41l8bhgWSubU0CStmx572W AckiO1b25OIFlglo2Ecwrdc8CRXX4h4Wpk/xVsiEBYEAZOb0MEYLFlCD5WNhjXvB/O NAcqR4CwOhnQuT2e3OXSVB061SfaInJ6pQEUywFPoqpAKMhx00/tyBXXz1Lmul86mM r8ylml94a6qemMli1f2QtLe02lvrry9jA6f7zQ0W1DD68q0dmp7xLwsgQqoui4btRI FXKxkS142WHQgxBDNEv8NDHZI2L5P5ENh7SXhOrlpyth7aVtidUNrobZAgND4eCpb+ 9lniwjTwxmqlg== Date: Thu, 9 Jun 2022 09:55:13 +0100 (BST) From: Peter Stephenson To: Zsh hackers list Message-ID: <1500085568.729173.1654764913871@mail2.virginmedia.com> In-Reply-To: References: <1148576327.671240.1654595869665@mail2.virginmedia.com> Subject: Re: "functions -c" and TRAPxxx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 147.161.167.85 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfIAVeONiwsffGTmzqH3af8f9yR2lEECVo2sa59fmU4L0n+sjJOE5qbp0VVx3HOmVV/gNy62LKlfIfet4SpTV8XchNUthxV/K7vS+yn8Fwlcmi7PQqOIA iCkc3AGBXMvRjbphSPQ3ApBOk9ARz0bB8oQDuI8IrI2eD19+rbGuXAbkNvE37Nj/0m8nrodwNSe7lRKu6/DiikErmMuVJwBv9UUmChcWaqpw5GSF+Z3OFDit X-Seq: 50357 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 09 June 2022 at 04:24 Bart Schaefer wrote: > On Tue, Jun 7, 2022 at 7:57 AM Bart Schaefer wrote: > > > > I know most of what's going on there, but "functions -c" is creatin > > an alternate name, and there is also the failure case of settrap() > > returning nonzero to handle. > > The following works for the case of settrap() succeeding, but I'm not > sure how to force settrap() to fail. Looks entirely plausible; given TRAP{INT,QUIT} already work this ought to work too. Looks like the only way for settrap to fail is using a signal number that's not handled interactively. pws