Try some fixes for external paths (#415)

This commit is contained in:
JT 2021-12-03 20:40:31 +13:00 committed by GitHub
parent 574d7f6936
commit a28d38b05f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}