Skip to content

bug: Pathman uses forward slash instead of backslash #11

@chipbite

Description

@chipbite

Describe the bug

Running sample command (%userprofile%\bin\pathman.exe add ~/bin) path entry is added...

Expected: with backslash. ( C:\Users\mawid6\bin; )

Actual: with forward slash. ( C:\Users\mawid6/bin; )

E g:

C:\Users\mawid6>reg query "HKCU\Environment"

HKEY_CURRENT_USER\Environment
    Path    REG_SZ    C:\Users\mawid6/bin;C:\Users\mawid6\AppData\Local\Programs\Python\Python313\Scripts\;C:\Users\mawid6\AppData\Local\Programs\Python\Python313\;C:\Users\mawid6\AppData\Local\Programs\Python\Launcher\;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Users\mawid6\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mawid6\AppData\Local\Microsoft\WinGet\Links;C:\Users\mawid6\AppData\Roaming\npm;%USERPROFILE%\go\bin

To Reproduce

Win 11, cmd.exe, run sample command as detailed above.

Device / Machine (please complete):

  • OS/Device: Win 11, Microsoft Windows [Version 10.0.26100.3775]

Image

  • Arch: x64 (installed amd64 version, e g https://git.rootprojects.org/root/pathman/releases/download/v0.5.2/pathman-v0.5.2-windows-amd64.zip).
  • Version 0.5.2.

Additional context

Little/no impact, just looks bad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions