Skip to content

[2pt] fio.basename behavior doesn't conform to POSIX #2124

Closed
@rosik

Description

@rosik

Product: Tarantool
Audience/target: dev
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/fio

Details

Tarantool version - 2.8.0-75-g6610bce9b (but actually all)

tarantool> fio.dirname('/x/')
---
- /
...

tarantool> fio.basename('/x/')
---
- 
...

Expected behavior

$ dirname '/x/'
/
$ basename '/x/'
x

See also https://pubs.opengroup.org/onlinepubs/9699919799/

Metadata

Metadata

Assignees

No one assigned

    Labels

    add details[nature] More details needed, some info missing. Documentation is incomplete.devTo be updated by the developers. Includes developer guidelines and many API elements.reference[location] Tarantool manual, Reference part

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions