forked from extern/nushell
Try some fixes for external paths (#415)
This commit is contained in:
parent
574d7f6936
commit
a28d38b05f
@ -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 New Issue
Block a user