mirror of
https://github.com/nushell/nushell.git
synced 2025-03-11 05:58:15 +01:00
remove enter scope
This commit is contained in:
parent
672dd5a868
commit
cb0914ecb0
@ -81,7 +81,6 @@ fn eval_external(
|
|||||||
.ok_or_else(|| ShellError::ExternalNotSupported(*name))?;
|
.ok_or_else(|| ShellError::ExternalNotSupported(*name))?;
|
||||||
|
|
||||||
let command = engine_state.get_decl(decl_id);
|
let command = engine_state.get_decl(decl_id);
|
||||||
let new_context = context.enter_scope();
|
|
||||||
|
|
||||||
let mut call = Call::new();
|
let mut call = Call::new();
|
||||||
call.positional = [*name]
|
call.positional = [*name]
|
||||||
@ -99,7 +98,7 @@ fn eval_external(
|
|||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
command.run(&new_context, &call, input)
|
command.run(&context, &call, input)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn eval_expression(
|
pub fn eval_expression(
|
||||||
|
Loading…
Reference in New Issue
Block a user