Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] Sticky-sh POSIX_TRAPS are function-local
- X-seq: zsh-workers 38005
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [BUG] Sticky-sh POSIX_TRAPS are function-local
- Date: Tue, 16 Feb 2016 20:25:47 -0800
- 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==
- In-reply-to: <56C3B2E7.1090806@inlv.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <56C15DF1.8080405@inlv.org> <20160216095744.52cb8389@pwslap01u.europe.root.pri> <56C3B2E7.1090806@inlv.org>
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).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author