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

Re: using trap function to cleanup and exit?



On Sun, Apr 10, 2022 at 1:49 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> However, if I exit from an
> exit trap, the status of the exit trap is ignored and I get the status
> from before it was called

Clarification:  If an exit trap is called from another trap, this is
the behavior.  If the shell is otherwise exiting normally, the status
from the exit trap is preserved.




Messages sorted by: Reverse Date, Date, Thread, Author