Adding to $PYTHONPATH with bash script
<p>I wrote a bash script to add to my <code>$PYTHONPATH</code>. My <code>.sh</code> file has the following:</p>

<pre><code>sudo echo export PYTHONPATH=$PYTHONPATH:/path/to/new/python/module &gt;&gt; ~/.bashrc
</code></pre>

<p>What I want to be added to my <code>.bashrc</code> is:</p>

<pre><code>PYTHONPATH=$PYTHONPATH:/path/to/new/python/module
</code></pre>

<p>However I can only get it to add:</p>

<pre><code>PYTHONPATH=/all/other/python/modules/already/on/path:/path/to/new/python/module
</code></pre>

<p>I don't want the actual <code>$PYTHONPATH</code> value to be added to my <code>.bashrc</code>, just the variable name. Please help!</p>