mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
dirname: in impl, make behavior for '/' fs root agnostic of host platform
This commit is contained in:
parent
396c1642a2
commit
51d7227aeb
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ directory).", NAME, VERSION);
|
|||
}
|
||||
}
|
||||
None => {
|
||||
if p.is_absolute() {
|
||||
if p.is_absolute() || path == "/" {
|
||||
print!("/");
|
||||
} else {
|
||||
print!(".");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue