title: Installing Homebrew via shell script
body: <p>This must be an easy one.  I'd like to install Homebrew via a shell script on OS X.</p>
  
  <p>Homebrew's recommended installation from the terminal works,  </p>
  
  <pre><code>$ ruby &lt;(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
  </code></pre>
  
  <p>but if I put the following in a file <em>test.sh</em>,</p>
  
  <pre><code>#!/bin/sh
  ruby &lt;(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
  </code></pre>
  
  <p>then execute it,</p>
  
  <pre><code>$ sh test.sh
  </code></pre>
  
  <p>I receive the following error:  </p>
  
  <pre><code>test.sh: line 2: syntax error near unexpected token `('
  test.sh: line 2: `ruby &lt;(curl -fsSk https://raw.github.com/mxcl/homebrew/go)'
  </code></pre>
  
  <p>What is the correct syntax to use in a shell script to get this to work and why is it different from the command line?  Thanks!</p>