Skip to content

Commit

Permalink
fix filenames with spaces on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
reiner-dolp committed Sep 17, 2017
1 parent 0ccdbd0 commit a631235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn that<T:AsRef<OsStr>+Sized>(path: T) -> io::Result<ExitStatus> {
#[cfg(target_os = "windows")]
pub fn that<T:AsRef<OsStr>+Sized>(path: T) -> io::Result<ExitStatus> {
let mut cmd = Command::new("cmd");
cmd.arg("/C").arg("start");
cmd.arg("/C").arg("start").arg("");
if let Some(s) = path.as_ref().to_str() {
cmd.arg(s.replace("&", "^&"));
} else {
Expand Down

0 comments on commit a631235

Please sign in to comment.