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

Re: TRAPINT doesn't work reliably



On Sat, 2019-09-28 at 09:00 -0700, Bart Schaefer wrote:
> On Sat, Sep 28, 2019 at 4:17 AM Dennis Schwartz
> <dennis.schwartz@xxxxxxxxxxxxxx> wrote:
> > 
> > * On my system (Debian 10), I need to compile zsh with the version
> >   number from my default Debian installation. So I always do
> >   `git checkout zsh-5.7.1 -- Config/version.mk` before I compile.
> 
> So, you should definitely STOP doing that.  It's only creating confusion.

This is an important point I missed --- if you're using wordcode
compiled files this will be a disaster, as Bart notes.

Also, if you're using wordcode compiled files, that could be a reason
why using the trap command behaves differently from defining a TRAPINT
function --- although the actual behaviour depends on the utilities
you're using, it's much more typically to save functions that way than
traps defined the other way.

pws



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