-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Let us specify EOL when using out-file #2145
Copy link
Copy link
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productUsability(LEGACY) Helps filter issues that might be higher priority because they directly affect usability(LEGACY) Helps filter issues that might be higher priority because they directly affect usabilityWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productUsability(LEGACY) Helps filter issues that might be higher priority because they directly affect usability(LEGACY) Helps filter issues that might be higher priority because they directly affect usabilityWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues