Skip to content

gh copilot throws "is not recognized as an internal or external command #13106

@plamber

Description

@plamber

Describe the bug

I am using Windows and have this user directory 'c:\Users\PatrickLamber(Easy'.

When running the command gh copilot it throws the exception "'c:\Users\PatrickLamber' is not recognized as an internal or external command, operable program or batch file."

Image

Affected version

gh version 2.89.0 (2026-03-26)

Steps to reproduce the behavior

You should have a windows user directory like this 'c:\Users\PatrickLamber(Easy'.

  1. type gh copilot
  2. View the output '....'
  3. See error
    'c:\Users\PatrickLamber' is not recognized as an internal or external command,
    operable program or batch file.

Expected vs actual behavior

It correctly picks my user folder and proceeds

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions