Skip to content

Commit

Permalink
Merge pull request #11 from reiner-dolp/master
Browse files Browse the repository at this point in the history
fix for filenames with spaces on windows
  • Loading branch information
Byron authored Sep 24, 2017
2 parents c017217 + a631235 commit 59dd0bd
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 59dd0bd

Please sign in to comment.