forked from extern/nushell
Fix the for loop to create vars
This commit is contained in:
@ -459,6 +459,10 @@ pub fn parse_internal_call(
|
||||
|
||||
let signature = working_set.get_decl(decl_id).signature();
|
||||
|
||||
if signature.creates_scope {
|
||||
working_set.enter_scope();
|
||||
}
|
||||
|
||||
// The index into the positional parameter in the definition
|
||||
let mut positional_idx = 0;
|
||||
|
||||
@ -554,6 +558,10 @@ pub fn parse_internal_call(
|
||||
let err = check_call(command_span, &signature, &call);
|
||||
error = error.or(err);
|
||||
|
||||
if signature.creates_scope {
|
||||
working_set.exit_scope();
|
||||
}
|
||||
|
||||
// FIXME: type unknown
|
||||
(Box::new(call), span(spans), error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user