Title: Let us specify EOL when using out-file · Issue #2145 · PowerShell/PowerShell · GitHub
Open Graph Title: Let us specify EOL when using out-file · Issue #2145 · PowerShell/PowerShell
X Title: Let us specify EOL when using out-file · Issue #2145 · PowerShell/PowerShell
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 ...
Open Graph 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 w...
X 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 w...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2145
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Let us specify EOL when using out-file","articleBody":"Right now, powershell in Windows writes CRLF when using `Out-File`. A simple use-case where this fails is when I use\n\n```\ngit format-patch HEAD~3 | Out-File patch.patch -Encoding utf8\n```\n\nThis 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.\n\nThis feature _might_ also be useful in linux maybe?\n","author":{"url":"https://github.com/kumarharsh","@type":"Person","name":"kumarharsh"},"datePublished":"2016-08-31T13:51:59Z","url":"https://github.com/PowerShell/PowerShell/issues/2145"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bbc6532c-78da-0e6d-a1a0-9854c78f9bbf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA68:21F45C:E9946E:14EA6AE:6AFDA5A8 |
| html-safe-nonce | eb00c97bc323efe04914a00e7a30e84489e9f18c5429436855ddbf48759fd1de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTY4OjIxRjQ1QzpFOTk0NkU6MTRFQTZBRTo2QUZEQTVBOCIsInZpc2l0b3JfaWQiOiI3ODE2NjU3NTU3ODU3ODcxMjcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 11a02ebdb06bea69a06463a04e4f3642e1826c0068e17c908c82e1fd291edeff |
| hovercard-subject-tag | issue:174278833 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2145/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53b77f07c507cc3ecc51f7bac15a5a7dbd774dd8261c022e3a39439d43a5df72/PowerShell/PowerShell/issues/2145 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53b77f07c507cc3ecc51f7bac15a5a7dbd774dd8261c022e3a39439d43a5df72/PowerShell/PowerShell/issues/2145 |
| og:image:alt | 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 w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kumarharsh |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width