Re: Second trap invocation is ignored?

2015-04-11 Thread Chet Ramey
On 4/10/15 5:27 PM, Scott Bronson wrote: > On Fri, Apr 10, 2015 at 8:16 AM, Chet Ramey wrote: >> On 4/6/15 11:58 AM, Greg Wooledge wrote: >>> I'd be fine with that, but then why does "source ./foo" create a DEBUG >>> trap at the global scope the *first* time? >> >> Because there's nothing to save

Re: [Help-bash] make function local

2015-04-11 Thread Chet Ramey
On 4/10/15 11:09 AM, Greg Wooledge wrote: > On Fri, Apr 10, 2015 at 09:13:17AM -0500, Eduardo A. Bustamante López wrote: >> Now, for the features in bash that'd be actually useful: >> >> - discipline functions and compound datatypes (like in ksh) >> - a way to do wrap arbitrary OS system calls with