1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00: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:
Heather 2016-03-01 11:55:54 +04:00
commit 8d278913c2

View file

@ -60,7 +60,7 @@ directory).", NAME, VERSION);
}
}
None => {
if p.is_absolute() {
if p.is_absolute() || path == "/" {
print!("/");
} else {
print!(".");