fn restore_env(&mut self) {
        let mut ctx = self.context.borrow_mut();

        for k in &self.delete_env {
            ctx.env.remove(k);
        }
        self.delete_env.clear();

        for (k, v) in &self.restore_env {
            ctx.env.insert(k.clone(), v.clone());
        }
        self.restore_env.clear();
    }
/// Check if any env vars must be replaced/deleted due to inline env vars from last command.
Check if any env vars must be replaced/deleted due to inline env vars from last command.
Check if any env vars must be replaced / deleted due to inline env vars from last command .
fn restore_env(&mut self) {
        let mut ctx = self.context.borrow_mut();
        for k in &self.delete_env {
            ctx.env.remove(k);
        }
        self.delete_env.clear();
        for (k, v) in &self.restore_env {
            ctx.env.insert(k.clone(), v.clone());
        }
        self.restore_env.clear();
    }
fn restore_env ( & mut self ) { let mut ctx = self . context . borrow_mut ( ) ; for k in & self . delete_env { ctx . env . remove ( k ) ; } self . delete_env . clear ( ) ; for ( k , v ) in & self . restore_env { ctx . env . insert ( k . clone ( ) , v . clone ( ) ) ; } self . restore_env . clear ( ) ; }
Check if any env vars must be replaced/deleted due to inline env vars from last command.
Check if any env vars must be replaced / deleted due to inline env vars from last command .
&mut self