title: Parent and Child Shell Script Problem
body: <p>I have two scripts parent.sh and child.sh. There is a variable in parent.sh which needs to be accessed by the child process. I have achieved this by exporting the variable in the parent script and the variable is available to the child process? </p>
  
  <p>Is there any way that child can modify the value of the export variable defined in parent shell?</p>
  
  <p>Parent.sh</p>
  
  <pre><code>#!/bin/bash
  export g_var=2
  ./child.sh
  </code></pre>
  
  <p>child.sh</p>
  
  <pre><code>#!/bin/bash
  g_var=`expr $g_var + 1 `   #This modification is available in child shell only.
  </code></pre>