-
Notifications
You must be signed in to change notification settings - Fork 842
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
The environment PATH while running inside WSL vs. running via bash -c
differs
#2634
Comments
Running using
But the path is still not echo'ed when running
|
Try to use |
@Biswa96 They both seem to work the same under WSL. |
@therealkenc why does echoing the path via |
For the same reason the following does the same thing on Real Linux. Because it is a syntax error.
|
@therealkenc if |
Closing the issue since |
@therealkenc
Both on root and non-root. |
Because that is not a script with a syntax error at line 0.
Or even just:
|
@therealkenc Ok, I understand now, bash is a command usable from WSL/Linux also and that is the way expansion works. Thank you |
Microsoft Windows [Version 10.0.16299.19]
Problem: the environment PATH while running inside WSL vs. running via
bash -c
differs.In WSL:
Via
bash -c
:For example
/home/neo/.local/bin/
is available under WSL but not underbash -c
I'd expect the paths should be the same or there should be some way to run something equivalent to
bash -c
so that the environment PATH is the same (at least the Linux bit of the path).PS: Not sure what is the deal with
syntax error near unexpected token
('`The text was updated successfully, but these errors were encountered: