Dear maintainer,
The dash manpage states:
The syntax of the return command is
return [exitstatus]
It terminates the currently executing function. Return is implemented
as a builtin command.
I can't find any reference to what happens when exitstatus is omitted. Bash
does this:
return [n]
Causes a function to stop executing and return the value
specified by n to its
caller. If n is omitted, the return status is that of the
last command executed in
the function body.
Is it the same? Could a sentence be added to the manpage (or return could
be added to the builtins section, like exit)?
Kind regards,
Dan