Skip to content

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

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 /.
/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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