mirror of
https://github.com/nushell/nushell.git
synced 2025-07-07 18:07:02 +02:00
Auto-hide aliases to prevent recursion (#4487)
This commit is contained in:
@ -851,7 +851,10 @@ pub fn parse_call(
|
||||
new_spans.extend(&spans[(pos + 1)..]);
|
||||
}
|
||||
|
||||
working_set.enter_scope();
|
||||
working_set.hide_alias(&name);
|
||||
let (mut result, err) = parse_expression(working_set, &new_spans, false);
|
||||
working_set.exit_scope();
|
||||
|
||||
result.replace_span(working_set, expansion_span, orig_span);
|
||||
|
||||
|
Reference in New Issue
Block a user