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

Re: trap problem.



In article <1010329055823.ZM17574@xxxxxxxxxxxxxxxxxxxxxxx>,
  "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> That's because zsh has been extremely clever and has `exec'd "sleep 60",
> so there's no zsh process around any more to execute the trap.

I see.

% Src/zsh -fc 'trap "echo INT" INT; sleep 60; :'

works as I expected.  Thanks.

> Perhaps zsh's tests for whether the last command can be `exec'd should
> include testing whether there are any user-defined traps in effect?

I agree.
-- 
Tanaka Akira



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