Title: Enhance some cmdlets with Culture and Comparison parameters · Issue #9348 · PowerShell/PowerShell · GitHub
Open Graph Title: Enhance some cmdlets with Culture and Comparison parameters · Issue #9348 · PowerShell/PowerShell
X Title: Enhance some cmdlets with Culture and Comparison parameters · Issue #9348 · PowerShell/PowerShell
Description: Approved proposal #9348 (comment) Motivation Currently some cmdlets process objects using only current culture. Sometime we have Culture parameter to use another culture and CaseSensitive parameter to switch from default case-INsensitive...
Open Graph Description: Approved proposal #9348 (comment) Motivation Currently some cmdlets process objects using only current culture. Sometime we have Culture parameter to use another culture and CaseSensitive parameter...
X Description: Approved proposal #9348 (comment) Motivation Currently some cmdlets process objects using only current culture. Sometime we have Culture parameter to use another culture and CaseSensitive parameter...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9348
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enhance some cmdlets with Culture and Comparison parameters","articleBody":"\r\nApproved proposal https://github.com/PowerShell/PowerShell/issues/9348#issuecomment-483051343\r\n\r\n# Motivation\r\n\r\nCurrently some cmdlets process objects using only current culture. Sometime we have Culture parameter to use another culture and CaseSensitive parameter to switch from default case-INsensitive behavior to case-sensitive.\r\n\r\nUsing only current culture and case-insensitivity is not a justified restriction. \r\nIn management tasks, it is often justified to use culture invariant and ordinal/ordinal-ignorecase comparisons.\r\n\r\nUsing non-culture (especially ordinal) allows to significantly increase the performance of operations like processing large log files.\r\n\r\n# Summary of the new feature/enhancement\r\n\r\nFor follow cmdlets:\r\n- Compare-Object\r\n- Group-Object\r\n- Sort-Object\r\n- Select-Object\r\n- Select-String\r\n\r\nimplement:\r\n- add Culture parameter if absent\r\n- add Comparision (with values - Ordinal, OrdinalIgnoreCase, CurrentCulture, CurrentCultureIgnoreCase, InvariantCulture, InvariantCultureIgnoreCase and perhaps SimpleCaseFolding)\r\n- deprecate CaseSensitive parameter\r\n\r\n# Proposed technical implementation details\r\n\r\n- All this parameters is in ObjectCmdletBase class.\r\n- To deprecate CaseSensitive parameter add `Parameter(DontShow = true)`.\r\n- Comparision parameter has priority over Culture parameter.\r\n- Defaults (stay like now) is CurrentCulture for Culture parameter and CurrentCultureIgnoreCase for Comparison parameter. Although we might consider OrdinalIgnoreCase.\r\n\r\n# Additional information\r\n\r\nCome from #8180 discussion.","author":{"url":"https://github.com/iSazonov","@type":"Person","name":"iSazonov"},"datePublished":"2019-04-12T10:36:52Z","url":"https://github.com/PowerShell/PowerShell/issues/9348"}
| 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:af5e5aa6-4f32-6d7b-1e20-e32d15f04712 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEDE:2F6606:25CFA25:34D5395:6AFD49F1 |
| html-safe-nonce | fe1b93d395bacc3c64a9cabc39935f459a4a2ebad1096dd404b6624b048dab60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRURFOjJGNjYwNjoyNUNGQTI1OjM0RDUzOTU6NkFGRDQ5RjEiLCJ2aXNpdG9yX2lkIjoiNzk3MzU2NzQ5NjQ1ODE2MDYyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1755af4945b49424ff47d38cf48b3d31df87ab26196060626fe9e73cfb3cbab6 |
| hovercard-subject-tag | issue:432500831 |
| 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/9348/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e087e1a034c85bde4d3d59c07556a5e0a9016ad9b7c8248efbe52473250f187b/PowerShell/PowerShell/issues/9348 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e087e1a034c85bde4d3d59c07556a5e0a9016ad9b7c8248efbe52473250f187b/PowerShell/PowerShell/issues/9348 |
| og:image:alt | Approved proposal #9348 (comment) Motivation Currently some cmdlets process objects using only current culture. Sometime we have Culture parameter to use another culture and CaseSensitive parameter... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iSazonov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width