mirror of https://github.com/sharkdp/fd.git
Add TODOs and FIXMEs about Windows
This commit is contained in:
parent
dc29ef70c4
commit
614f576c47
|
@ -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 {
|
if index != 0 {
|
||||||
self.data = &self.data[index + 1..]
|
self.data = &self.data[index + 1..]
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
self.data = if !has_dir {
|
||||||
"."
|
"."
|
||||||
} else if index == 0 {
|
} else if index == 0 {
|
||||||
|
|
|
@ -603,6 +603,7 @@ fn test_exec() {
|
||||||
|
|
||||||
let abs_path = get_absolute_root_path(&te);
|
let abs_path = get_absolute_root_path(&te);
|
||||||
|
|
||||||
|
// TODO Windows tests: D:file.txt \file.txt \\server\share\file.txt ...
|
||||||
if !cfg!(windows) {
|
if !cfg!(windows) {
|
||||||
te.assert_output(
|
te.assert_output(
|
||||||
&["--absolute-path", "foo", "--exec", "echo"],
|
&["--absolute-path", "foo", "--exec", "echo"],
|
||||||
|
|
Loading…
Reference in New Issue