Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Weird interaction between zpty and trap



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