Skip to content

enable CLI when invoked from WSL on modern (RS4) hosts - #44945

Merged
Daniel Imms (Tyriar) merged 1 commit into
microsoft:masterfrom
0xabu:wsl-cli-fix
May 15, 2018
Merged

Daniel Imms (Tyriar) merged 1 commit into
microsoft:masterfrom
0xabu:wsl-cli-fix

Conversation

@0xabu

Copy link
Copy Markdown
Contributor

Fixes issue #39892

There's one minor gotchya: this script tests for a modern WSL release
(which supports the WSLENV feature) using the existence of
/bin/wslpath. Per https://docs.microsoft.com/en-us/windows/wsl/release-notes,
wslpath was added in build 17046 but WSLENV is only supported in
the subsequent build (17063). Both those builds were only shipped as
Windows insider builds, so this test should be safe enough.

Fixes issue #39892

There's one minor gotchya: this script tests for a modern WSL release
(which supports the WSLENV feature) using the existence of
/bin/wslpath. Per https://docs.microsoft.com/en-us/windows/wsl/release-notes,
wslpath was added in build 17046 but WSLENV is only supported in
the subsequent build (17063). Both those builds were only shipped as
Windows insider builds, so this test should be safe enough.
@0xabu

Copy link
Copy Markdown
Contributor Author

FWIW, I'm reasonably confident that the OSX build failure has nothing to do with this change :)

@0xabu

Copy link
Copy Markdown
Contributor Author

Ping Daniel Imms (@Tyriar) -- any chance of getting this in for April?

@Tyriar

Copy link
Copy Markdown
Contributor

Andrew Baumann (@0xabu) sorry somehow I missed this one completely as it was still on March 😕 and was just on leave, will look at it this week for the May release (it's too late for April).

@Tyriar Daniel Imms (Tyriar) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! Sorry again about the big delay 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants