Skip to content

path.relative regression in v5.7.0Β #5489

@c-f-h

Description

@c-f-h
> var path = require('path');
> path.relative('/home/foo/bar', '/home/foo')
"../../foo"

Expected output is "..", which is what happens in v5.5.0, v4.3.1, v0.12.10 and v0.10.42.

  • Version: v5.7.0
  • Platform: Linux 4.0.5-gentoo SMP PREEMPT Mon Sep 14 14:30:27 CEST 2015 x86_64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz GenuineIntel GNU/Linux
  • Subsystem: path

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssues and PRs that are duplicates of other issues or PRs.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions