mirror of
https://github.com/nushell/nushell
synced 2024-11-10 23:24:14 +00:00
Use external exceptions in path strings (#4636)
This commit is contained in:
parent
70009c015d
commit
2b1e4dd242
1 changed files with 7 additions and 0 deletions
|
@ -301,6 +301,13 @@ pub fn external_exceptions(engine_state: &EngineState, stack: &Stack) -> Vec<Vec
|
|||
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 a new issue