Skip to main content

restore_params

Function restore_params 

Source
pub fn restore_params(restorelist: Vec<param>, removelist: Vec<String>)
Expand description

Port of restore_params(LinkList restorelist, LinkList removelist) from Src/exec.c:4464-4528. After the builtin/shfunc returns, unset every name in removelist, then for each saved param in restorelist re-install its values (PM_SPECIAL go through gsu setfn; regular params re-enter paramtab as-is).