Skip to content

Commit cfb6422

Browse files
committed
Add link to blog with WSLENV examples to address #720
1 parent d95bdbc commit cfb6422

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

WSL/interop.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ Properties of `WSLENV` variable:
142142
* It is shared; it exists in both Windows and WSL environments.
143143
* It is a list of environment variables to share between Windows and WSL.
144144
* It can format environment variables to work well in Windows and WSL.
145+
* It can assist in the flow between WSL and Win32.
145146

146147
> [!NOTE]
147148
> Prior to 17063, only Windows environment variable that WSL could access was `PATH` (so you could launch Win32 executables from under WSL). Starting in 17063, `WSLENV` begins being supported.
@@ -159,6 +160,8 @@ There are four flags available in `WSLENV` to influence how the environment vari
159160

160161
Flags can be combined as needed.
161162

163+
[Read more about WSLENV](https://devblogs.microsoft.com/commandline/share-environment-vars-between-wsl-and-windows/), including FAQs and examples of setting the value of WSLENV to a concatenation of other pre-defined environment vars, each suffixed with a slash followed by flags to specify how the value should be translated and passing variables with a script. This article also includes an example for setting up a dev environment with the [Go programming language](https://golang.org/), configured to share a GOPATH between WSL and Win32.
164+
162165
## Disable interoperability
163166

164167
Users may disable the ability to run Windows tools for a single WSL session by running the following command as root:

0 commit comments

Comments
 (0)