Skip to content

absNormPath "/" "/.." does not remove all dotdots #5

@nomeata

Description

@nomeata

Joey reported this issue at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599675 against version 1.1.0.3:

Prelude System.Path> absNormPath "/" "/.."
Just "/.."
Prelude System.Path> absNormPath "/" "/../../"
Just "/"
Prelude System.Path> absNormPath "/" "/../.."
Just "/"
Prelude System.Path> absNormPath "/" "/../../../"
Nothing

I'd expect to get Nothing or "/" for all of these. The documentation
says that it removes all dotdot entries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions