zsh-workers
 help / color / mirror / code / Atom feed
* Weird interaction between zpty and trap
@ 2023-03-22  4:49 Felipe Contreras
  2023-03-22 22:06 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe Contreras @ 2023-03-22  4:49 UTC (permalink / raw)
  To: Zsh hackers list

Hi,

Playing around with zpty I noticed some error messages coming
seemingly out of nowhere until I realized there was a trap.

Should the command executed by zpty keep the EXIT trap?

    zmodload zsh/zpty

    exec 3>&2
    die() { echo >&3 "die"; }
    trap 'die' EXIT
    zpty c ':'
    trap - EXIT

-- 
Felipe Contreras


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-27 21:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22  4:49 Weird interaction between zpty and trap Felipe Contreras
2023-03-22 22:06 ` Bart Schaefer
2023-03-22 23:07   ` Felipe Contreras
2023-03-27 21:12     ` Felipe Contreras

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).