<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 21, 2014 at 8:18 PM, paul g <span dir="ltr"><<a href="mailto:pj.world@hotmail.com" target="_blank">pj.world@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">FOO=bar <----mean?</blockquote></div><div class="gmail_extra">
<br></div>Those are environment variables.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Open up a command prompt and type "env" to see your current environment variables listed.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Some of these variables are system-wide variables, set from the /etc/environment file, and some are per-user variables, set in your ~/.bashrc for instance. You can manually set an environment variable if needed with something like:</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">$ export MYSWEETVARIABLE=foobar</div><div class="gmail_extra"><br></div><div class="gmail_extra">...then you can verify it's been set:</div><div class="gmail_extra">
<br></div><div class="gmail_extra">$ env | grep SWEET</div><div class="gmail_extra">MYSWEETVARIABLE=foobar<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Note: this variable will only exist for your current shell instance. Once you exit that shell, the variable will go away. If you need persistent environment variables, add them to your ~/.bashrc file.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Also note: if you need a variable to only last for the execution of a single command, you can do this:</div><div class="gmail_extra"><br></div><div class="gmail_extra">
$ MYSWEETVARIABLE=foobar /path/to/command</div><div class="gmail_extra"><br></div><div class="gmail_extra">-Erik</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div>
<div class="gmail_extra"><br></div></div>