Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Weird interaction between zpty and trap
- X-seq: zsh-workers 51594
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Weird interaction between zpty and trap
- Date: Tue, 21 Mar 2023 22:49:00 -0600
- Archived-at: <https://zsh.org/workers/51594>
- List-id: <zsh-workers.zsh.org>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author