Re: return bultin ignores explicit exit value when used in DEBUG trap

2015-11-26 Thread Chet Ramey
On 11/19/15 2:06 AM, Grisha Levit wrote: > Not sure if this is a documentation bug or a functional one, but the man page > does not seem to agree with the observed behavior for return when invoked in > DEBUG traps. Thanks for the report. The internal trap handler used for DEBUG and other signal

return bultin ignores explicit exit value when used in DEBUG trap

2015-11-18 Thread Grisha Levit
Not sure if this is a documentation bug or a functional one, but the man page does not seem to agree with the observed behavior for return when invoked in DEBUG traps. return [n] Causes a function to stop executing and return the value specified by n to its caller. If n is omitted, the re