From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27644 invoked by alias); 19 Feb 2016 18:59:07 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38011 Received: (qmail 23413 invoked from network); 19 Feb 2016 18:59:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=Rtmxhs8PV/8fatUe96tG3toTx31ssDzWqF7GuMQ5w00=; b=CnWXlSFW4YB4sJlbC/Hg4MzeWvWbmA+rW05IbF2C8SbbYeXzNcJ/3IZgK9UYVknbgo gNj+1kXjk2TlJkyEr6Sl+Xys3Bqcjmnt+FiRfF1apWX+L7L1l8sgCaDUw6zw73kyKDUV 7vqS/+8bQgsdGVcsdSCr9WJWxdNddA20zYgqZxkr4DcQSVPtBLEYEmCPvqI81X7YfA9f /EfKel3NUX8wkApZqWs7+a8sJF/FDXmYzzM00LIUi7G28e/WXsP+3YnbyxHMdrmoyncA yus73ADpQ9vGcaO3pNUALf4EGHz7/fI8/gE9e1/s5fuvNpLw/7PyJ4wfCk6K1Pbip2op XX2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=Rtmxhs8PV/8fatUe96tG3toTx31ssDzWqF7GuMQ5w00=; b=NLfXOunyd7tev2Nc9jqFYsrH88LpA8VkMBVrL3peRmTMoIrfA3zJoXOw8Occ8jVtoE /4aRgVc/RhYTtlbQ+y2m8I/nNY7LmOqyVlPDnN7ckLkOMeC9bWwrR5Tn42ICeSMK90a6 3Wsw3MoDN7I6C38F95SAtaX7VjylHRwNZ2lXgPBqHQyRJF0z9PisAXrpDaQCsCLG7qlO K0dXmWLLwnKhAVD7+OGxhDUP0R85Y+e+ZYiMBELzZvw3QEN8/YFx96P8wBTYUxTOJNxP jfIZbR/X2l9uIqVgQey1D8XsAVGlX3uRxhUNejCCbfRE/Buz0AsaGuOfmkJdANLetC7Q COhQ== X-Gm-Message-State: AG10YOQIoE/2MW24TeTeYieb3lDqzDRN0yRcwwhdinuEhruM5MRlaaBn6DJ1kalw4WWN3A== X-Received: by 10.98.87.142 with SMTP id i14mr20065963pfj.63.1455908339323; Fri, 19 Feb 2016 10:58:59 -0800 (PST) From: Bart Schaefer Message-Id: <160219105924.ZM17561@torch.brasslantern.com> Date: Fri, 19 Feb 2016 10:59:24 -0800 In-Reply-To: <56C4041F.5060602@inlv.org> Comments: In reply to Martijn Dekker "Re: [BUG] Sticky-sh POSIX_TRAPS are function-local" (Feb 17, 6:24am) References: <56C15DF1.8080405@inlv.org> <20160216095744.52cb8389@pwslap01u.europe.root.pri> <56C3B2E7.1090806@inlv.org> <160216202547.ZM3900@torch.brasslantern.com> <56C4041F.5060602@inlv.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: [BUG] Sticky-sh POSIX_TRAPS are function-local MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 17, 6:24am, Martijn Dekker wrote: } } But POSIX is irrelevant to function-local traps because they are not } defined in POSIX, so, once emulation mode is exited, there is nothing } that compels you to make them wipe out a global POSIX trap. That's sort of the point -- there's nothing that compels us, hence ... } > I could see an argument either way ... and your argument is a pretty good one. } > I could also see an argument } > that the localtraps option should affect this } } How do you think that option should affect this? To be pedantic, I didn't say I think that; I said I could understand how one might argue that position. To try to frame it -- the implication is that a trap created under LOCAL_TRAPS should *never* alter traps in any outer scope. This ought to include the global scope, regardless of the context in which the global trap was created. I.e. given "setopt POSIX_TRAPS LOCAL_TRAPS" this argues that LOCAL_TRAPS should "win". With PWS's patch, POSIX_TRAPS prevails.