mirror of
https://github.com/nushell/nushell
synced 2024-12-28 22:13:10 +00:00
Try some fixes for external paths (#415)
This commit is contained in:
parent
574d7f6936
commit
a28d38b05f
1 changed files with 4 additions and 0 deletions
|
@ -227,6 +227,10 @@ impl ExternalCommand {
|
||||||
|
|
||||||
for arg in &self.args {
|
for arg in &self.args {
|
||||||
let arg = trim_enclosing_quotes(arg);
|
let arg = trim_enclosing_quotes(arg);
|
||||||
|
let arg = nu_path::expand_path(arg).to_string_lossy().to_string();
|
||||||
|
|
||||||
|
let arg = arg.replace("\\", "\\\\");
|
||||||
|
|
||||||
process.arg(&arg);
|
process.arg(&arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue