Skip to content

BUG: PSReadline Set-PSReadlineKeyHandler is case sensitive for Function names #4300

@oising

Description

@oising

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 lookup for the method (default behaviour) - needs binding flags applied to call.

Environment data

> $PSVersionTable
n/a -- issue is with PSReadline 1.2

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productWG-Interactive-PSReadLinePSReadline related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions