Skip to content

Wrong path normalization #3

@apollo7321

Description

@apollo7321

As Fabian reported there is one issue remaining:

The only difference from the Linux tool:

C:\Users\fabian.grutschus\Documents\projects\sha256sum.exe>.\x64\Release\sha256sum.exe "%cd%\tests\..\tests\CalcHashTestFile.txt"
5825c4a88eddd074eb3c12b23dedc0eb4d7d5f2356a61a4078a0bd3ccf69c7a1 *C:\Users\fabian.grutschus\Documents\projects\sha256sum.exe\tests\CalcHashTestFile.txt

Under Linux the path isn't normalized:

fabian.grutschus@NBINV0026:~$ sha256sum "$(pwd)/Downloads/../Downloads/phonenumbers-8.13.49-py2.py3-none-any.whl" 
e17140955ab3d8f9580727372ea64c5ada5327932d6021ef6fd203c3db8c8139  /home/fabian.grutschus/Downloads/../Downloads/phonenumbers-8.13.49-py2.py3-none-any.whl

I'm not sure if it's worth investing time to have the exact same behavior.

Originally posted by @fabiang in #1 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions