mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 06:18:21 +02:00
Add an alias denylist for expansions (#4871)
This commit is contained in:
@ -36,7 +36,7 @@ pub fn evaluate_file(
|
||||
let mut working_set = StateWorkingSet::new(engine_state);
|
||||
trace!("parsing file: {}", path);
|
||||
|
||||
let _ = parse(&mut working_set, Some(&path), &file, false);
|
||||
let _ = parse(&mut working_set, Some(&path), &file, false, &[]);
|
||||
|
||||
if working_set.find_decl(b"main").is_some() {
|
||||
let args = format!("main {}", args.join(" "));
|
||||
|
Reference in New Issue
Block a user