Skip to content

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

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.

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

    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