Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
forFor example, I have a variable:
env_name="GOPATH"
nowNow I want to get the system GOPATHenvironment variable GOPATH as if like this:
GOPATH
echo $GOPATH
howHow can I get $GOPATH by $env_name?
$GOPATH
$env_name
for example, I have a variable:
now I want to get the system GOPATH like this:
how can I get $GOPATH by $env_name?
For example, I have a variable:
Now I want to get the environment variable GOPATH as if like this:
How can I get $GOPATH by $env_name?