Skip to content

Commit

Permalink
Add TODOs and FIXMEs about Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
J.W authored and sharkdp committed Oct 26, 2017
1 parent dc29ef7 commit 614f576
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/exec/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ impl<'a> Input<'a> {
}
}

// FIXME: On Windows, should return what for C:file.txt D:file.txt and \\server\share ?
if index != 0 {
self.data = &self.data[index + 1..]
}
Expand Down Expand Up @@ -78,6 +79,7 @@ impl<'a> Input<'a> {
}
}

// FIXME: On Windows, return what for C:file.txt D:file.txt and \\server\share ?
self.data = if !has_dir {
"."
} else if index == 0 {
Expand Down
1 change: 1 addition & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ fn test_exec() {

let abs_path = get_absolute_root_path(&te);

// TODO Windows tests: D:file.txt \file.txt \\server\share\file.txt ...
if !cfg!(windows) {
te.assert_output(
&["--absolute-path", "foo", "--exec", "echo"],
Expand Down

0 comments on commit 614f576

Please sign in to comment.