mirror of
https://github.com/nushell/nushell.git
synced 2025-02-16 18:41:44 +01:00
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