Title: Range operator (aka DotDot operator) with char operands in pipeline throws error · Issue #5519 · PowerShell/PowerShell · GitHub
Open Graph Title: Range operator (aka DotDot operator) with char operands in pipeline throws error · Issue #5519 · PowerShell/PowerShell
X Title: Range operator (aka DotDot operator) with char operands in pipeline throws error · Issue #5519 · PowerShell/PowerShell
Description: Steps to reproduce A'..'B' 'A'..'B' | ForEach-Object { $_ } Expected behavior A B Actual behavior Cannot convert value "A" to type "System.Int32". Error: "Input string was not in a correct format." At line:1 char:1 'A'..'B' | ForEach-Obj...
Open Graph Description: Steps to reproduce A'..'B' 'A'..'B' | ForEach-Object { $_ } Expected behavior A B Actual behavior Cannot convert value "A" to type "System.Int32". Error: "Input string was not in a correct format."...
X Description: Steps to reproduce A'..'B' 'A'..'B' | ForEach-Object { $_ } Expected behavior A B Actual behavior Cannot convert value "A" to type "System.Int32". Er...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5519
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Range operator (aka DotDot operator) with char operands in pipeline throws error","articleBody":"Steps to reproduce\r\n------------------\r\n\r\n```'\r\nA'..'B'\r\n'A'..'B' | ForEach-Object { $_ }\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```\r\nA\r\nB\r\n```\r\n\r\nActual behavior\r\n---------------\r\nCannot convert value \"A\" to type \"System.Int32\". Error: \"Input string was not in a correct format.\"\r\nAt line:1 char:1\r\n+ 'A'..'B' | ForEach-Object { $_ }\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n+ CategoryInfo : InvalidArgument: (:) [], RuntimeException\r\n+ FullyQualifiedErrorId : InvalidCastFromStringToInteger```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```Name Value\r\n---- -----\r\nPSVersion 6.0.0-rc\r\nPSEdition Core\r\nGitCommitId v6.0.0-rc\r\nOS Microsoft Windows 10.0.15063\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","author":{"url":"https://github.com/TimCurwick","@type":"Person","name":"TimCurwick"},"datePublished":"2017-11-21T15:48:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/5519/PowerShell/issues/5519"}
| 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:b6f50c8e-5ff5-9462-97c0-0720f9b5d459 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE26:3C2C9:150AB02:1E89758:6A54DC80 |
| html-safe-nonce | 09355e10fd212f484ccc27ef3de6aff08fb23adf984bbd3755d391e66c1c4281 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTI2OjNDMkM5OjE1MEFCMDI6MUU4OTc1ODo2QTU0REM4MCIsInZpc2l0b3JfaWQiOiIxNjI0ODY3NDA2Njk3NTA0MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b28c9850d43d8f65aac9e82f85edb5464e7b9028306d00e84fc1b8509fea2f84 |
| hovercard-subject-tag | issue:275760874 |
| 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/5519/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dcb47df59364386084f10ef94f6b052b666d4b93b804e651bcaeaad96a4676b6/PowerShell/PowerShell/issues/5519 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dcb47df59364386084f10ef94f6b052b666d4b93b804e651bcaeaad96a4676b6/PowerShell/PowerShell/issues/5519 |
| og:image:alt | Steps to reproduce A'..'B' 'A'..'B' | ForEach-Object { $_ } Expected behavior A B Actual behavior Cannot convert value "A" to type "System.Int32". Error: "Input string was not in a correct format."... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TimCurwick |
| hostname | github.com |
| expected-hostname | github.com |
| None | a556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54 |
| 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 | 00f21e38abd06cd6752db5c227083570f72fdb6c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width