Title: Unquoted numbers with two or more dots should cast to a `[version]` rather than`$Null` · Issue #15756 · PowerShell/PowerShell · GitHub
Open Graph Title: Unquoted numbers with two or more dots should cast to a `[version]` rather than`$Null` · Issue #15756 · PowerShell/PowerShell
X Title: Unquoted numbers with two or more dots should cast to a `[version]` rather than`$Null` · Issue #15756 · PowerShell/PowerShell
Description: Related: How can Powershell compares between string and double? Summary of the new feature / enhancement Currently an unquoted number with two or more dots casts to a $Null instead of leaving an expected ... is not recognized as a name o...
Open Graph Description: Related: How can Powershell compares between string and double? Summary of the new feature / enhancement Currently an unquoted number with two or more dots casts to a $Null instead of leaving an ex...
X Description: Related: How can Powershell compares between string and double? Summary of the new feature / enhancement Currently an unquoted number with two or more dots casts to a $Null instead of leaving an ex...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/15756
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unquoted numbers with two or more dots should cast to a `[version]` rather than`$Null`","articleBody":"Related: [How can Powershell compares between string and double?](https://stackoverflow.com/q/68335669/1701026)\r\n\r\n### Summary of the new feature / enhancement\r\n\r\nCurrently an unquoted number with two or more dots casts to a `$Null` instead of leaving an expected `... is not recognized as a name of a cmdlet` error.\r\n\r\n```PowerShell\r\n$Version = 2.0.9\r\n$Null -eq $Version\r\nTrue\r\n```\r\n\r\nI would like to suggest to cast numbers with 3 or 4 dots (as `2.0.9` and `2.0.7.0`) automatically to a version as a semantic PowerShell sugar.\r\n","author":{"url":"https://github.com/iRon7","@type":"Person","name":"iRon7"},"datePublished":"2021-07-11T12:21:19Z","url":"https://github.com/PowerShell/PowerShell/issues/15756"}
| 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:ec9a0bc0-b3f9-6f02-a7a3-e485eeceee0e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89CA:1DD318:A2233:D97DD:6AFD2B19 |
| html-safe-nonce | 1faf4e024b720d71740d8d8788c22ce24d76b848356afe44bfdd0b2e30362566 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUNBOjFERDMxODpBMjIzMzpEOTdERDo2QUZEMkIxOSIsInZpc2l0b3JfaWQiOiI1NDI3OTk1NTA2MDI0MTk2ODg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4bd10c3e0498a261aa54be1b568da85076f95ee87b935d71d1986a66f2612cea |
| hovercard-subject-tag | issue:941441148 |
| 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/15756/issue_layout |
| twitter:image | https://opengraph.githubassets.com/556195ed5fee7470bb22214c35b3f5d59333996dd40a17ac85459389d252254a/PowerShell/PowerShell/issues/15756 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/556195ed5fee7470bb22214c35b3f5d59333996dd40a17ac85459389d252254a/PowerShell/PowerShell/issues/15756 |
| og:image:alt | Related: How can Powershell compares between string and double? Summary of the new feature / enhancement Currently an unquoted number with two or more dots casts to a $Null instead of leaving an ex... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iRon7 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19 |
| 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 | 941021edf0c2ec58298f4a2c8f27ae507d129c92 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width