Skip to content

Add batch/powershell launching support #428

@dmlloyd

Description

@dmlloyd

On Windows, powershell and (especially) batch have unusual argument handling rules that are fairly tricky to implement correctly. Therefore, at present, executing powershell and batch scripts is not allowed on Windows and will result in an exception.

Add support for these by constructing safe command lines for these cases.

For batch, since some strings are impossible to pass to batch scripts, there should be extra validation to reject these arguments immediately to avoid user confusion or (worse yet) vulnerability to injection attacks.

Note that it is technically possible to install and use powershell on other operating systems. Nevertheless, the special support should be restricted to Windows. For other operating systems, particularly POSIX-like OSes like MacOS and Linux, the +x file permission bit should be used with an appropriate #! line.

/cc @maxandersen

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions