Title: -NoTypeInformation should be default on Export-Csv · Issue #5131 · PowerShell/PowerShell · GitHub
Open Graph Title: -NoTypeInformation should be default on Export-Csv · Issue #5131 · PowerShell/PowerShell
X Title: -NoTypeInformation should be default on Export-Csv · Issue #5131 · PowerShell/PowerShell
Description: In most situations, the default behavior of Export-Csv is undesirable. Its usage as an object Import and Export is limited to begin with. What it is more commonly used for (in my experience, anyway) is to produce CSV files either to be p...
Open Graph Description: In most situations, the default behavior of Export-Csv is undesirable. Its usage as an object Import and Export is limited to begin with. What it is more commonly used for (in my experience, anyway...
X Description: In most situations, the default behavior of Export-Csv is undesirable. Its usage as an object Import and Export is limited to begin with. What it is more commonly used for (in my experience, anyway...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5131
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"-NoTypeInformation should be default on Export-Csv","articleBody":"In most situations, the default behavior of `Export-Csv` is undesirable. Its usage as an object Import and Export is limited to begin with. What it is more commonly used for (in my experience, anyway) is to produce CSV files either to be parsed by other automated processes outside the PowerShell ecosystem or to be used in Excel as human parsable reports. The initial line with the type information is undesirable in those situations. \r\n\r\nThis is a common \"gotcha\" for PowerShell novices. It violates the Principle of least astonishment.\r\n\r\nI'm curious how many profiles have this `$PSDefaultParameterValues['Export-CSV:NoTypeInformation'] = $true`. I know I have that in my work profile and at the top of so many scripts.\r\n\r\nIt's a minor annoyance and a breaking change, but I just don't think the default behavior is actually useful.\r\n\r\nMy tentative proposal is to leave `-NoTypeInformation` in for backwards compatibility but make it default and add a `-IncludeTypeInformation` switch to revert to legacy behavior per request.\r\n\r\nThis issue is for discussion, yays, nays, and possible alternatives for a proposed solution.","author":{"url":"https://github.com/markekraus","@type":"Person","name":"markekraus"},"datePublished":"2017-10-16T09:24:57Z","url":"https://github.com/PowerShell/PowerShell/issues/5131"}
| 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:7b6dc4b7-2267-4a83-48a4-71aeab5ce92f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB98:285A0C:1D30AA:28A7D0:6AFD8097 |
| html-safe-nonce | 325011eab9ae0989361ba5ae991dcf58e36840090e45735e50b265c3d65bc3c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjk4OjI4NUEwQzoxRDMwQUE6MjhBN0QwOjZBRkQ4MDk3IiwidmlzaXRvcl9pZCI6IjIzNjQ1MTUyNTM1NjkyOTAzOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 29e4b65f6a89d0e9059474704c7670a08ac520e0bc993a49196098c39b550fc3 |
| hovercard-subject-tag | issue:265701674 |
| 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/5131/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ba893e124f192fc3ab06f4554da83cd14768d8678822db48025c889bd11841cd/PowerShell/PowerShell/issues/5131 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba893e124f192fc3ab06f4554da83cd14768d8678822db48025c889bd11841cd/PowerShell/PowerShell/issues/5131 |
| og:image:alt | In most situations, the default behavior of Export-Csv is undesirable. Its usage as an object Import and Export is limited to begin with. What it is more commonly used for (in my experience, anyway... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markekraus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42d4967e3c8afca51ccac31f419a705af777226a95f025ea73387d87a306b326 |
| 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 | 2329ceed0bc2c7b7c3b9f5f2db6abfc7b6fc3a50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width