HomeFreeBSD

sh: Update associated state when restoring locals while leaving a function.

Description

sh: Update associated state when restoring locals while leaving a function.

Some variables like PATH call a function when modified. Make sure to call
this also when leaving a function where such a variable was made local.

Make sure to restore local variables before shellparam, so getopts state is
not clobbered.

Details

Provenance
jillesAuthored on
Parents
rS293634: MFC r292057:
Branches
Unknown
Tags
Unknown