cc: [email protected]
Subject: Re: [ast-users] context of trap actions
--------

> Why is that? I would expect the trap to be evaluated in the
> context of the read_timeout function equivalent to an
> "eval 'printf "timed out\n"; return'" inside the function and
> bash, pdksh and dash/ash do that.
> (I know both about read -t, but I'm trying to build something
> equivalent using only SUSv3 specified functionality.)
> -- 
> Guido Berhoerster
> 

This is a bug.  The return value from the return trap should have
prevented the signal from propagating to the caller.

This is fixed in the next ksh93u beta update due out this week.

David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to