Skip to content

Strange characters at the beginning of file when creating or opening (when SSH'd from WSL to Windows 10) #414

@robertstrom

Description

@robertstrom

I have downloaded edit.exe and have run it locally in a PowerShell v7 shell and also have it copied to a remote Windows 10 machine. The executable has been copied to the C:\Windows\System32 directory on both systems.

When I run edit.exe locally it seems to behave properly.

This is what it looks like when I run edit.exe using this command

edit.exe testing_edit.exe_123.txt 

Image

This is what it looks like on the remote Windows 10 system when I run edit.exe using this command (SSH'd into from an Ubuntu WSL shell). I tested SSH'ing into the system from a PowerShell v5 shell and launching edit and saw the same behavior. The remote Windows 10 machine is configured to use PowerShell v7 for it's default shell when you connect via SSH. PowerShell v 7 is PowerShell 7.5.1

edit testing1234.txt

Image

Now I blank out that text and type this text and save the file

Image

Image

Now I reopen the file edit testing1234.txt and there are all kinds of strange characters inserted into the file. This happens each and every time the file is created or opened.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions