Skip to content

path.posix.relative returns different results for *nix and Windows versions of node #13683

@usergenic

Description

@usergenic
  • Version: 8.1.1
  • Platform: Windows Server
  • Subsystem: path.js

This code returns different values depending on whether run on *nix or windows:

path.posix.relative('a/b/c', '../../x');
'../../../..../x' // on windows
'../../../../../x' // on *nix

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.pathIssues and PRs related to the path subsystem.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions