Skip to content

Let us specify EOL when using out-file #2145

@kumarharsh

Description

@kumarharsh

Right now, powershell in Windows writes CRLF when using Out-File. A simple use-case where this fails is when I use

git format-patch HEAD~3 | Out-File patch.patch -Encoding utf8

This outputs files which look ok, but the git apply command can't accept this file, as it as CRLF line endings. So, I'd like Out-File to output files with LF line endings.

This feature might also be useful in linux maybe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productUsability(LEGACY) Helps filter issues that might be higher priority because they directly affect usabilityWG-Cmdletsgeneral cmdlet issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions