mirror of
https://github.com/nushell/nushell.git
synced 2025-04-09 21:28:55 +02:00
Windows external exceptions (#4632)
This commit is contained in:
parent
3c62d27c28
commit
cbad648d0e
@ -274,6 +274,14 @@ pub fn external_exceptions(engine_state: &EngineState, stack: &Stack) -> Vec<Vec
|
|||||||
executables.push(name);
|
executables.push(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Some(name) = item.path().file_stem() {
|
||||||
|
let name = name.to_string_lossy();
|
||||||
|
let name = name.as_bytes().to_vec();
|
||||||
|
if nu_parser::is_math_expression_like(&name) {
|
||||||
|
executables.push(name);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user