title: Setting environment variables in Linux using Bash
body: <p>In <code>tcsh</code>, I have the following script working:</p>
  
  <pre><code>#!/bin/tcsh
  setenv X_ROOT /some/specified/path
  
  setenv XDB    ${X_ROOT}/db
  setenv PATH   ${X_ROOT}/bin:${PATH}
  
  xrun -d xdb1 -i $1 &gt; $2
  </code></pre>
  
  <p>What is the equivalent to the <code>tcsh setenv</code> function in Bash? </p>
  
  <p>Is there a direct analog? The environment variables are for locating the executable.</p>