mirror of
https://github.com/nushell/nushell
synced 2024-12-27 13:33:16 +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 {
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue