Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: trap problem.
- X-seq: zsh-workers 13847
- From: Tanaka Akira <akr@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: trap problem.
- Date: 30 Mar 2001 16:57:44 +0900
- In-reply-to: <1010329055823.ZM17574@xxxxxxxxxxxxxxxxxxxxxxx> (Bart Schaefer's message of "Thu, 29 Mar 2001 05:58:23 +0000")
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <hvo8zlpw8eg.fsf@xxxxxxxxxxxxxx> <1010329055823.ZM17574@xxxxxxxxxxxxxxxxxxxxxxx>
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