Skip to content

functions with - on the name wrongfully selected for tab completion #16577

@LuanVSO

Description

@LuanVSO

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

n/a

Screenshot

image

Environment data

PS Version: 7.2.0
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.2.0-beta4
PSReadLine EditMode: Windows
OS: 10.0.19041.1288 (WinBuild.160101.0800)
BufferWidth: 120
BufferHeight: 35

Steps to reproduce

  1. in a clean pwsh declare any function with a - in it's name, i used:
function test-{}
function test-2{}
  1. type any command (preferably one that doesn't have any completer) followed by a -
  2. press tab or ctrl+space

Expected behavior

nothing?

Actual behavior

the functions with - in the name gets inserted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Interactive-IntelliSensetab completion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions