title: ruby exec use functions from my ~/.bashrc
body: <p>In my <code>~/.bashrc</code>, I have a function:</p>
  
  <pre><code>function sayHi() {
      echo "hi, $@"
  }
  </code></pre>
  
  <p>and in Ruby I want to:</p>
  
  <pre><code>`sayHi "friend"`
  </code></pre>
  
  <p>however, <code>sayHi</code> is "not found" in whatever context ruby runs <code>exec</code> or <code>system</code>.</p>
  
  <p>How could I get Ruby to use functions in my <code>.bashrc</code>?</p>