Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PSCommandNotFoundSuggestion doesn't help with typical native command typos on Windows #26591

Open
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.
@surfingoldelephant

Description

@surfingoldelephant

Prerequisites

Description

On Windows, native commands are typically invoked without their extension (e.g.,notepad instead ofnotepad.exe). If a typo is made with this type of command invocation,PSCommandNotFoundSuggestion is unhelpful.

For example:

  • ntepadyields no suggestions, despite deviating from the validnotepad command by just a single character.
  • Invokingntepad.exe ornotepad.ex is necessary to generate a suggestion.

Steps to reproduce

  1. Ensure thePSFeedbackProvider experimental feature is enabled.
  2. On Windows, enterntepad into the shell.

Expected behavior

notepad/notepad.exe is suggested.

ntepad: The term 'ntepad' is not recognized as a name of a cmdlet, function, script file, or executable program.Check the spelling of the name, or if a path was included, verify that the path is correct and try again.[General Feedback]  The most similar commands are:    > notepad

Actual behavior

No suggestion is generated.

ntepad: The term 'ntepad' is not recognized as a name of a cmdlet, function, script file, or executable program.Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Environment data

Name                           Value---------PSVersion7.6.0-preview.5PSEdition                      CoreGitCommitId7.6.0-preview.5OS                             Microsoft Windows10.0.19045Platform                       Win32NTPSCompatibleVersions           {1.0,2.0,3.0,4.0,5.0,5.1…}PSRemotingProtocolVersion2.4SerializationVersion1.1.0.1WSManStackVersion3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp