title: Bash environment variable inherited by child without "export"
body: <p>I have the following script in ~/bin/ in order to override the default command for <code>gnome-terminal</code>:</p>
  
  <pre><code>#!/usr/bin/env bash
  XDG_CONFIG_HOME=~/.config/darkthemesettings /usr/bin/gnome-terminal
  </code></pre>
  
  <p>I am trying to make the <code>XDG_CONFIG_HOME</code> variable only get seen by gnome-terminal, but in terminal that appears, if I run any other program, the variable is also set in that program. Running <code>echo $XDG_CONFIG_HOME</code> from the terminal gives
      /home//.config/darkthemesettings</p>
  
  <p>I understood that if one sets an environment variable without using <code>export</code>, that variable is only available in the script that sets it, not in any child processes. Am I incorrect? How can I achieve what I want here? Thanks</p>