Skip to content

Issue: cmd those params have spaces failed when executed by gsudo #408

@mekrina

Description

@mekrina

in powershell 7.5.1 and the latest gsudo 2.6.0, cmd those params have spaces failed when executed by gsudo
for example:
ls "C:\Program Files" just work fine, but
gsudo ls "C:\Program Files", there is an error:
Get-ChildItem: Cannot find path 'C:\Program' because it does not exist.
the program split the quoted path to two part
the same problem occured when using mv, cp...

however, I test the powershell 5.1 and cmd, there are no problems;
I don't kown if it's a bug of powershell7.5.1 or gsudo, I decided to post a issue here

Image

Context:

  • Windows version: Win11 24H2
  • gsudo version: 2.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions