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
signals the shell treats specially needed to pick up the argument supplied
to `return' as well as noting `return' was called.
This affects the DEBUG, RETURN, and ERROR traps.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/