title: Substituting the value of variable inside backtick operator
body: <p>How can I substitute the value of a variable inside the backtick operator?</p>
  
  <pre><code>script_dir = File.expand_path File.dirname(__FILE__)
  p `ruby -e p "$script_dir"` # this does not work
  </code></pre>