mirror of
https://github.com/nushell/nushell
synced 2024-12-28 05:53:09 +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()
|
.into_iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.map(move |(idx, x)| {
|
.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) = block.signature.get_positional(0) {
|
||||||
if let Some(var_id) = &var.var_id {
|
if let Some(var_id) = &var.var_id {
|
||||||
|
|
Loading…
Reference in a new issue