Skip to content

refactor(COMSPEC): Deprecate use of subshell cmd.exe#4692

Merged
niheaven merged 2 commits intodevelopfrom
comspec-deprecate
Jan 26, 2022
Merged

refactor(COMSPEC): Deprecate use of subshell cmd.exe#4692
niheaven merged 2 commits intodevelopfrom
comspec-deprecate

Conversation

@rashil2000
Copy link
Copy Markdown
Member

Description

It is possible that COMSPEC is undefined/empty, or some people even set it to powershell instead of cmd (extremely dangerous).

We only use COMSPEC in one place now, in lib/git.ps1, so I replaced that with the actual binary name (which will always exist).

Also removed the function which tested COMSPEC's existence.

Motivation and Context

Closes #3845

How Has This Been Tested?

No functional changes, so not tested.

Checklist:

  • I have read the Contributing Guide.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

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.

3 participants