title: Save an environment variable without using /bin/bash
body: <p>I have a program that creates a environment variable called <code>$EGG</code> with this code</p>
  
  <pre><code> memcpy(buff,"EGG=",4);
   putenv(buff); 
   system("/bin/bash"); 
  </code></pre>
  
  <p>And the value of <code>buff</code> is used to create an environment variable, and I use it through <code>$EGG</code> variable, but for use it I see that I must use the call <code>system("/bin/bash");</code>. Otherwise, if I don't use /bin/bash call I don't find my <code>$EGG</code> variable.</p>
  
  <p>Is there a way to save my environment variable without calling <code>/bin/bash</code>?</p>