HomeFreeBSD

sh: Make return return from the closest function or dot script.
rS255215Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

sh: Make return return from the closest function or dot script.

Formerly, return always returned from a function if it was called from a
function, even if there was a closer dot script. This was for compatibility
with the Bourne shell which only allowed returning from functions.

Other modern shells and POSIX return from the function or the dot script,
whichever is closest.

Git 1.8.4's rebase --continue depends on the POSIX behaviour.

Reported by: Christoph Mallon, avg

Details

Provenance
jillesAuthored on
Parents
rS255214: IFC @ r255209
Branches
Unknown
Tags
Unknown

Event Timeline