From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1227 invoked by alias); 17 Feb 2016 04:25:30 -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: 38005 Received: (qmail 2883 invoked from network); 17 Feb 2016 04:25:27 -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=GsHK1dIv0HpBiZTp+W+V9Kdm9tMhMiCRBSVgeUBMF3E=; b=fqDy94AkV8crcogMR/cigVQtHhNZNHWWJBFX/HFjUMHeZn3polbg1CEl+TAxA3Fjah H1807/KKfXMsUt2c0yhYuXlNmyDLIN02Zz/ETyeQVj87X+JXkZYENOhVQoQawk7mv+zf ZfxW9gNecTiBqiDznNPnQEb6uyqLBs/zVjLS1nusVKHwJl1IAAGeltvq5ew3RuVogldB +GsWwOt8NnWxdKhFbx9jPCrUaMai6+Xyu0dcR7s6te4/U+gE666Gc80nv1InV6AMsGPS LtavlgaDyFRLdan6hePDzHxlqkVh4+3XV0CCZ85hkgt0NYmeYNLH1FJLGI5rMYHQL2Ex NklA== 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=GsHK1dIv0HpBiZTp+W+V9Kdm9tMhMiCRBSVgeUBMF3E=; b=eWEbgnXaYQ2NDuK6d0/ssp0NYhBuvlFcrRLskAST6WUI2XDetu0SGgKxgxPCGosJCs m9Q32vQQiwas2jfsKGmJEfHCzlvVjJY87dz0tEsetz4GLuDAa6oxQBZjiPdKURrwvMYF sTGj+sHPXBQWF95vD+PUVEUzBfmndeAC+ptbPe8KXu8W5NKKmZGtmjPEB8xWLnL/RBCb J1QSERFXGJhCbmDjGtQio97L4tMVDI6I1dcSZa3eWxXEXP/qXxiAVFM1pHTlFLeZ7FD5 QGQOTGQdZF0L1vKiBqzcrl3FhjvITKj/5/lHWPWIe8N98NQ0fCLXQ1Z5iosNjSVXipnY WfKQ== X-Gm-Message-State: AG10YOTECUst3PxJBGDfFw1aaddPNN1XWHuCVR2wk0gJRrXrTPbAq/yfJ7gPmW95xLKWIQ== X-Received: by 10.98.72.202 with SMTP id q71mr36022376pfi.69.1455683126572; Tue, 16 Feb 2016 20:25:26 -0800 (PST) From: Bart Schaefer Message-Id: <160216202547.ZM3900@torch.brasslantern.com> Date: Tue, 16 Feb 2016 20:25:47 -0800 In-Reply-To: <56C3B2E7.1090806@inlv.org> Comments: In reply to Martijn Dekker "Re: [BUG] Sticky-sh POSIX_TRAPS are function-local" (Feb 17, 12:38am) References: <56C15DF1.8080405@inlv.org> <20160216095744.52cb8389@pwslap01u.europe.root.pri> <56C3B2E7.1090806@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, 12:38am, Martijn Dekker wrote: } } With your current patch, the function-local trap wipes out the global } POSIX exit trap, so the last line of expected output doesn't appear. Hrm. I think the point is that there are no function-local traps in POSIX, so the POSIX trap obeys the POSIX rules even when another trap is set in non-POSIX scope. I could see an argument either way, though. I could also see an argument that the localtraps option should affect this (even though it's not usually needed for global traps).