Title: Windows PowerShell modules have a priority if WinCompat feature is enabled · Issue #11419 · PowerShell/PowerShell · GitHub
Open Graph Title: Windows PowerShell modules have a priority if WinCompat feature is enabled · Issue #11419 · PowerShell/PowerShell
X Title: Windows PowerShell modules have a priority if WinCompat feature is enabled · Issue #11419 · PowerShell/PowerShell
Description: If WinCompat feature is enabled and loaded a Windows PowerShell module ,cmdlets from the module have a priority over PowerShell Core cmdlets. /cc @anmenaga Steps to reproduce Get-Date -UFormat "%s" was changed in PowerShell Core and we u...
Open Graph Description: If WinCompat feature is enabled and loaded a Windows PowerShell module ,cmdlets from the module have a priority over PowerShell Core cmdlets. /cc @anmenaga Steps to reproduce Get-Date -UFormat "%s"...
X Description: If WinCompat feature is enabled and loaded a Windows PowerShell module ,cmdlets from the module have a priority over PowerShell Core cmdlets. /cc @anmenaga Steps to reproduce Get-Date -UFormat &quo...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11419
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Windows PowerShell modules have a priority if WinCompat feature is enabled","articleBody":"If WinCompat feature is enabled and loaded a Windows PowerShell module ,cmdlets from the module have a priority over PowerShell Core cmdlets.\r\n/cc @anmenaga \r\n\r\n# Steps to reproduce\r\n\r\n`Get-Date -UFormat \"%s\"` was changed in PowerShell Core and we use this in follow demo. \r\n\r\n\r\n\r\n# Expected behavior\r\n\r\nGet-Date from PowerShell Core is involved.\r\n\r\nI'd expect that PowerShell Core cmdlets have a priority or it is better WinCompat feature exports only requested cmdlet which explicitly presents in a feature list. Perhaps we could do `Enable/Disable-WindowsPowerShellCmdlet -Module \u003cname\u003e -Cmdlet \u003cname\u003e`\r\n\r\n# Actual behavior\r\n\r\nGet-Date from Windows PowerShell is involved.\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 7.0.0-preview.6\r\nPSEdition Core\r\nGitCommitId 7.0.0-preview.6-71-g36d3b3c0e45937d56650b2747effde94c20b42aa\r\nOS Microsoft Windows 10.0.17763\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/iSazonov","@type":"Person","name":"iSazonov"},"datePublished":"2019-12-21T13:22:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/11419/PowerShell/issues/11419"}
| 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:b0bd6602-bd13-d29d-aae5-3db323722455 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A06A:293A94:36A412:4B5F96:6A551CBF |
| html-safe-nonce | de5f6e6dec2769f97f26f166f511824e56262a2dba90e695c862af215e41b2ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDZBOjI5M0E5NDozNkE0MTI6NEI1Rjk2OjZBNTUxQ0JGIiwidmlzaXRvcl9pZCI6IjExMDk0ODIzMjc0MTgxNTAwNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ece20e84ca9ab5e0091fc36d77137a985ae978e820c26176e10e118aaa0bc5ef |
| hovercard-subject-tag | issue:541326540 |
| 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/11419/issue_layout |
| twitter:image | https://opengraph.githubassets.com/430cfde9860243a58ee052cabb73f2948bbf5d4d19a3f68610a39b7c986b663c/PowerShell/PowerShell/issues/11419 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/430cfde9860243a58ee052cabb73f2948bbf5d4d19a3f68610a39b7c986b663c/PowerShell/PowerShell/issues/11419 |
| og:image:alt | If WinCompat feature is enabled and loaded a Windows PowerShell module ,cmdlets from the module have a priority over PowerShell Core cmdlets. /cc @anmenaga Steps to reproduce Get-Date -UFormat "%s"... |
| 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 | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 3b6d37c6470adadff4194742daaab9a817cc4980 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width