title: What is the correct way to export a bash function after the shellshock updates?
body: <p>I am having problems with a script currently, but I'm not sure of the correct syntax. I think the script was broken with the shellshock patch to bash, but I just want to check.</p>
  
  <p>What is the correct way to export a bash function since the shellshock patch. And what was the correct way before the patch?</p>
  
  <p>Here are a few examples of what I am looking for.</p>
  
  <p><strong>A.</strong></p>
  
  <pre><code>export BASH_FUNC_module()='() {  eval `/usr/bin/modulecmd bash $*`\0012}'
  </code></pre>
  
  <p><strong>B</strong></p>
  
  <pre><code>export BASH_FUNC_module='() {  eval `/usr/bin/modulecmd bash $*`\0012}'
  </code></pre>
  
  <p><strong>C</strong></p>
  
  <pre><code>BASH_FUNC_module='() {  eval `/usr/bin/modulecmd bash $*`\0012}'
  export -f BASH_FUNC_module
  </code></pre>