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:
commit
8d278913c2
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ directory).", NAME, VERSION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
if p.is_absolute() {
|
if p.is_absolute() || path == "/" {
|
||||||
print!("/");
|
print!("/");
|
||||||
} else {
|
} else {
|
||||||
print!(".");
|
print!(".");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue