<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>

I think you're looking for
```
export
```
- though I could be wrong.. I've never played with tcsh before. Use the following syntax:
```
```
export VARIABLE=value
```
```