Skip to content

fix: test WSL paths with spaces in both Windows branches and clean up on rejection - #46

Open
Arthurvroum wants to merge 1 commit into
mainfrom
39-wsl-paths-with-spaces
Open

Arthurvroum wants to merge 1 commit into
mainfrom
39-wsl-paths-with-spaces

Conversation

@Arthurvroum

Copy link
Copy Markdown
Collaborator

Paths with spaces are accepted since the validator checks option names
strictly and only rejects shell syntax in values. Two gaps remained:

  • In the temporary-copy branch, the CLI was copied before the arguments
    were validated, so a rejected argument left the copy behind. They are
    now validated first, and temporary files are removed on any failure.
  • Neither Windows branch was tested outside Windows. The calls to wsl.exe
    are now replaceable, so a report and a compile database under
    "C:\My Project" are checked to stay single arguments through the
    temporary-copy branch and through the branch that runs in the WSL
    distribution holding the source, on every platform.

Fixes #39

… on rejection

Paths with spaces are accepted since the validator checks option names
strictly and only rejects shell syntax in values. Two gaps remained:

- In the temporary-copy branch, the CLI was copied before the arguments
  were validated, so a rejected argument left the copy behind. They are
  now validated first, and temporary files are removed on any failure.
- Neither Windows branch was tested outside Windows. The calls to wsl.exe
  are now replaceable, so a report and a compile database under
  "C:\My Project" are checked to stay single arguments through the
  temporary-copy branch and through the branch that runs in the WSL
  distribution holding the source, on every platform.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WSL rejects legitimate report and configuration paths containing spaces

1 participant