Title: BUG: PSReadline Set-PSReadlineKeyHandler is case sensitive for Function names · Issue #4300 · PowerShell/PowerShell · GitHub
Open Graph Title: BUG: PSReadline Set-PSReadlineKeyHandler is case sensitive for Function names · Issue #4300 · PowerShell/PowerShell
X Title: BUG: PSReadline Set-PSReadlineKeyHandler is case sensitive for Function names · Issue #4300 · PowerShell/PowerShell
Description: Steps to reproduce set-psreadlinekeyhandler "ctrl+k" -Function yank # note: lower case "yank" Expected behavior Should set ctrl+k to function Yank Actual behavior Causes null reference exception due to reflection using a case sensitive l...
Open Graph Description: Steps to reproduce set-psreadlinekeyhandler "ctrl+k" -Function yank # note: lower case "yank" Expected behavior Should set ctrl+k to function Yank Actual behavior Causes null reference exception du...
X Description: Steps to reproduce set-psreadlinekeyhandler "ctrl+k" -Function yank # note: lower case "yank" Expected behavior Should set ctrl+k to function Yank Actual behavior Causes null re...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4300
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BUG: PSReadline Set-PSReadlineKeyHandler is case sensitive for Function names","articleBody":"Steps to reproduce\r\n------------------\r\n\r\n```powershell\r\nset-psreadlinekeyhandler \"ctrl+k\" -Function yank # note: lower case \"yank\"\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\nShould set ctrl+k to function Yank\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nCauses null reference exception due to reflection using a case sensitive lookup for the method (default behaviour) - needs binding flags applied to call.\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\n\u003e $PSVersionTable\r\nn/a -- issue is with PSReadline 1.2\r\n```\r\n","author":{"url":"https://github.com/oising","@type":"Person","name":"oising"},"datePublished":"2017-07-19T22:20:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4300/PowerShell/issues/4300"}
| 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:938983fb-2457-5e92-1d0c-80f526d67b50 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A38:B33E1:12360C7:1983F11:6A57402E |
| html-safe-nonce | db9a65c00dacf2d05d19e39578d01c3bc1ee5bd1fa42adf32a23badc13ba35a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTM4OkIzM0UxOjEyMzYwQzc6MTk4M0YxMTo2QTU3NDAyRSIsInZpc2l0b3JfaWQiOiI2NzMwMzUzMzQxMDUzMjIyOTU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2f02dab1c086cba4046d5f72ce9497bfefa34ef5f9c700b642c9f09d1e7dadd4 |
| hovercard-subject-tag | issue:244191482 |
| 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/4300/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fb4d1a4d383f8b0a629e12f0c2798c44ecdd26e7e02cfcbdb336bdfa9568257a/PowerShell/PowerShell/issues/4300 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fb4d1a4d383f8b0a629e12f0c2798c44ecdd26e7e02cfcbdb336bdfa9568257a/PowerShell/PowerShell/issues/4300 |
| og:image:alt | Steps to reproduce set-psreadlinekeyhandler "ctrl+k" -Function yank # note: lower case "yank" Expected behavior Should set ctrl+k to function Yank Actual behavior Causes null reference exception du... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oising |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width