mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #825 from nathanross/dirname-fix-impl
Dirname: fix windows' failing test for absolute-path behavior (approach 2/2: platform-independent behavior)
This commit is contained in:
@@ -60,7 +60,7 @@ directory).", NAME, VERSION);
|
||||
}
|
||||
}
|
||||
None => {
|
||||
if p.is_absolute() {
|
||||
if p.is_absolute() || path == "/" {
|
||||
print!("/");
|
||||
} else {
|
||||
print!(".");
|
||||
|
||||
Reference in New Issue
Block a user