Skip to content

[Windows] Argument quoting is ignored and paths with spaces get split after -- #138

Description

@mag-andrewbueno

Example, fully expanded envstack call:

envstack project  -- powershell -NoProfile -ExecutionPolicy Bypass -File "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\example.ps1"

Results in the following:

Processing -File 'C:\ProgramData\Microsoft\Windows\Start' failed because the file
does not have a '.ps1' extension.

As you can see, the full script path is being split and powershell tries to run a nonexistant directory as a ps1 script. It could be something with how the arguments are being fed to subprocess

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions