Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wslvar: Allow variable names with parentheses #212

Merged
merged 5 commits into from
Dec 2, 2021

Conversation

lucyllewy
Copy link
Contributor

In Windows on 64bit systems there is an environment variable named ProgramFiles(x86).

Description

Allow the use of wslvar to access ProgramFiles(x86) from Windows in WSL by wrapping the $env:* variable with curly braces {} so that parentheses are acceptible. This causes wslvar to access the PowerShell environment variables as (for example) ${env:ProgramFiles(x86)} preventing a failure.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I have read Code of Conduct and Contributing documentations.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

crramirez and others added 5 commits September 14, 2021 23:00
Improve instructions for CentOS 8 and RHEL 8
In Windows on 64bit systems there is an environment variable named `ProgramFiles(x86)`.

* Allow the use of `wslvar` to access `ProgramFiles(x86)` from Windows in WSL.
@patrick330602 patrick330602 changed the base branch from master to lts/master December 2, 2021 08:52
@patrick330602 patrick330602 self-requested a review December 2, 2021 08:52
@patrick330602 patrick330602 merged commit bf4d2dc into wslutilities:lts/master Dec 2, 2021
@lucyllewy lucyllewy deleted the patch-1 branch February 4, 2022 00:36
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