mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
Expand external command names (#682)
This commit is contained in:
parent
47544ad219
commit
d39e8c15fe
1 changed files with 4 additions and 0 deletions
|
@ -193,6 +193,10 @@ pub fn parse_external_call(
|
|||
let mut args = vec![];
|
||||
let name_span = spans[0];
|
||||
let name = String::from_utf8_lossy(working_set.get_span_contents(name_span)).to_string();
|
||||
let cwd = working_set.get_cwd();
|
||||
let name = nu_path::expand_path_with(name, cwd)
|
||||
.to_string_lossy()
|
||||
.to_string();
|
||||
let mut error = None;
|
||||
|
||||
for span in &spans[1..] {
|
||||
|
|
Loading…
Reference in a new issue