Re: first trap call behaviour

2015-07-28 Thread Chet Ramey
On 7/28/15 6:34 AM, David Waddell wrote: > Hi > > Just a quick query re. the a behavior of trap when called from > function, not sure if it’s a bug or inconsistency or intentional. > > > > Basically it seems (without set –o errtrace) > > - an ERR trap can be set from within a

first trap call behaviour

2015-07-28 Thread David Waddell
Hi Just a quick query re. the a behavior of trap when called from function, not sure if it's a bug or inconsistency or intentional. Basically it seems (without set -o errtrace) - an ERR trap can be set from within a function when no ERR trap is currently defined. - ER