You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SETUP
1- In distro, add env var to /etc/profile. Example: export VAR1=1
2- In distro, add env var to ~/.bashrc. Example: export VAR2=2
TEST 1
1- enter the distro using "wsl" cmd
2- Run "env" cmd
TEST 2
1- from Windows command line run "wsl env"
TEST 3
1- from Windows command line run 'wsl bash --login -c "env"'
Expected Behavior
TEST 1
Both variables are present in the environment. * The .bashrc var is expected, as the SHELL env var states that bash is the current shell, at least in my distro
TEST 2
Both variables are present in the environment. * The .bashrc var is expected, as the SHELL env var states that bash is the current shell, at least in my distro
TEST 3
Both variables are present in the environment.
Actual Behavior
TEST 1
Both variables are present in env.
TEST 2
Neither variable is present in env.
TEST 3
Only the var set in /etc/profile is present in env
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered:
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.
Windows Version
Version 10.0.19045.3693
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
SETUP
1- In distro, add env var to /etc/profile. Example: export VAR1=1
2- In distro, add env var to ~/.bashrc. Example: export VAR2=2
TEST 1
1- enter the distro using "wsl" cmd
2- Run "env" cmd
TEST 2
1- from Windows command line run "wsl env"
TEST 3
1- from Windows command line run 'wsl bash --login -c "env"'
Expected Behavior
TEST 1
Both variables are present in the environment.
* The .bashrc var is expected, as the SHELL env var states that bash is the current shell, at least in my distro
TEST 2
Both variables are present in the environment.
* The .bashrc var is expected, as the SHELL env var states that bash is the current shell, at least in my distro
TEST 3
Both variables are present in the environment.
Actual Behavior
TEST 1
Both variables are present in env.
TEST 2
Neither variable is present in env.
TEST 3
Only the var set in /etc/profile is present in env
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: