title: How do I upgrade Bash in Mac OSX Snow Leopard [and set it the correct path]?
body: <p>I want to update my Bash (and Sh) programs in my Mac OS X Snow Leopard (10.6.8), in light of the recent bugs to bash - Shellshock.  I am purposely using 10.6.8, so I don't want to update to a newer version of OS X right now.</p>
  
  <p>I have read this Q&amp;A - <a href="https://stackoverflow.com/questions/16416195/how-do-i-upgrade-bash-in-mac-osx-mountain-lion-and-set-it-the-correct-path/">How do I upgrade Bash in Mac OSX Mountain Lion and set it the correct path?</a>  but it doesn't work for me because I don't have [home?]brew (or Xcode, or any compiler, etc) installed.  I'm just getting into doing programming on a Max OS X platform.</p>
  
  <p>Btw, when I type brew update in terminal I get this output:</p>
  
  <pre><code>[489]$ brew update
  -bash: brew: command not found
  </code></pre>
  
  <p>So, what steps (from scratch) do I need to do to be able to install a <em>fixed</em> version of <em>bash</em> for OS X 10.6.8?<br>
  Is it:</p>
  
  <ol>
  <li>Install XCode 3.2.6 (I'm currenlty downloading the 4.1 GB install file now)</li>
  <li>Install Homebrew (how though?)</li>
  <li>Follow steps in <a href="https://stackoverflow.com/questions/16416195/how-do-i-upgrade-bash-in-mac-osx-mountain-lion-and-set-it-the-correct-path/">How do I upgrade Bash in Mac OSX Mountain Lion and set it the correct path?</a> ?</li>
  </ol>
  
  <p>Or, since I am using OS X 10.6.8, do I need to download Bash code from somewhere and compile it using XCode 3.2.6 (or 4.2 if I paid for it) and manually replace the /bin/bash and /bin/sh files?</p>
  
  <p>Like I said, I am a new to all this on a Mac, but I do have [a bit out-of-date] programming experience.</p>
  
  <p>Thanks.</p>