Skip to content

Switch-Process: broken error message if the executable cannot be found #18436

Closed

Description

Prerequisites

Steps to reproduce

This should be a quick fix:

The error message tries to quote the given executable name when that executable cannot be found, but fails to do so:

Switch-Process NoSuchExe

Expected behavior

Switch-Process: Command 'NoSuchExe' was not found. The specified command must be an executable.

Actual behavior

Switch-Process: Command '' was not found. The specified command must be an executable.

Error details

No response

Environment data

PowerShell Core 7.3.0-rc.1 on Unix-like platforms.

Visuals

No response

Activity

  1. added
    Needs-Triage
    on Nov 1, 2022
  2. ghost added
    In-PR
    on Nov 2, 2022
  3. ghost removed
    In-PR
    on Nov 3, 2022
  4. ghost added
    Resolution-Fixed
    on Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageResolution-Fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions