mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 00:43:33 +01:00
Each much clone its env (#675)
This commit is contained in:
parent
f71e16685c
commit
3c2a336ef9
@ -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 New Issue
Block a user