mirror of
https://github.com/nushell/nushell
synced 2024-12-26 21:13:19 +00:00
Each much clone its env (#675)
This commit is contained in:
parent
f71e16685c
commit
3c2a336ef9
1 changed files with 2 additions and 1 deletions
|
@ -82,7 +82,8 @@ impl Command for Each {
|
|||
.into_iter()
|
||||
.enumerate()
|
||||
.map(move |(idx, x)| {
|
||||
stack.with_env(&orig_env_vars, &orig_env_hidden);
|
||||
stack.env_vars = orig_env_vars.clone();
|
||||
stack.env_hidden = orig_env_hidden.clone();
|
||||
|
||||
if let Some(var) = block.signature.get_positional(0) {
|
||||
if let Some(var_id) = &var.var_id {
|
||||
|
|
Loading…
Reference in a new issue