Thanks to visit codestin.com
Credit goes to github.com

Skip to content

basename: the output should be . if path ends with /. #8373

@cakebaker

Description

@cakebaker

GNU basename outputs a . if the path ends with /. whereas uutils basename doesn't.

$ basename hello/.
.
$ basename /.
.
$ cargo run -q basename hello/.
hello
$ cargo run -q basename /.
/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions