Skip to content

[Process] Windows escaping is not consistent #10486

Closed
@romainneutron

Description

@romainneutron

After digging more on Windows escaping, I realised some things:

  • We forbid environment variable expansion by escaping %APPDATA% to ^%"APPDATA"^%
  • We explicitly ask for variable expansion at runtime (running the command line with the /V:ON flag). Running a command containing !APPDATA! will be escaped and expanded (our previous rule is easily overriden)
  • On platform that are not windows, we use strong escaping that prevents any variable expansion ($PATH will be escaped to '$PATH' that is not interpreted as the current PATH)

We have three possibilities:

Any thoughts about this ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions