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

Re: signal weirdness fix



>Actually, I think this is almost exactly the wrong semantic.  The whole
>point was so that zsh scripts (which are pretty much by definition not
>"interactive shells" even though the script may be doing terminal I/O)
>could have their HUP/INT/QUIT traps tripped even when not executing a
>builtin command at the time the signal came in.

Hmm.  I have no strong feeling about this, but it *would* be nice to
make sure there's a tty around when processing these signals.
isatty(0) is obviously not sufficient test, so maybe that "&& interact"
should just be removed.

-zefram



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