mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 05:24:56 +02:00
Fix let-env (#3057)
This commit is contained in:
@ -186,6 +186,12 @@ impl Scope {
|
||||
frame.env.extend(env_vars)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn add_env_to_base(&self, env_vars: IndexMap<String, String>) {
|
||||
if let Some(frame) = self.frames.lock().first_mut() {
|
||||
frame.env.extend(env_vars)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ParserScope for Scope {
|
||||
|
Reference in New Issue
Block a user