title: Bash how do you capture stderr to a variable?
body: <p>Bash how do you capture stderr to a variable?</p>
  
  <p>I would like to do something like this inside of my bash script</p>
  
  <pre><code>sh -c path/myExcecutable-bin 2&gt;&amp;1 =MYVARIABLE
  </code></pre>
  
  <p>How do you send stderror output to a variable ?</p>