Skip to content

Commit a631235

Browse files
committed
fix filenames with spaces on windows
1 parent 0ccdbd0 commit a631235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub fn that<T:AsRef<OsStr>+Sized>(path: T) -> io::Result<ExitStatus> {
5959
#[cfg(target_os = "windows")]
6060
pub fn that<T:AsRef<OsStr>+Sized>(path: T) -> io::Result<ExitStatus> {
6161
let mut cmd = Command::new("cmd");
62-
cmd.arg("/C").arg("start");
62+
cmd.arg("/C").arg("start").arg("");
6363
if let Some(s) = path.as_ref().to_str() {
6464
cmd.arg(s.replace("&", "^&"));
6565
} else {

0 commit comments

Comments
 (0)