Skip to content

cmd/dist: emit \r in 'env -w' output #3060

Description

@jpoirier
What steps will reproduce the problem?
1. go tool dist env > temp.txt 
2. pkg\tool\windows_386\dist.exe > temp.txt


What is the expected output? What do you see instead?
Looking at temp.txt file's end-of-lines in an editor shows \n rather than the expected
\r\n,  Windows end-of-lines.

Depending on how the output is used, some Windows apps may have problems handling the
Unix EOLs, e.g.  Notepad. I had problems parsing the output file from a batch file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions