Skip to content

path.relative() wrong result in v5.7.0 Windows #5447

Closed
@frickt

Description

@frickt

Version: <= 5.6.0:

$ node
> process.version
'v5.6.0'
> path.relative('C:\\git\\foo\\bootstrap-loader','C:\\git\\foo\\bootstrap')
'..\\bootstrap'

Version: 5.7.0


$ node
> process.version
process.version
'v5.7.0'
> path.relative('C:\\git\\foo\\bootstrap-loader','C:\\git\\foo\\bootstrap')
'..'

'..' needs to be '..\bootstrap'

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions