title: Can't match any option in bash select statement
body: <p>I'm trying to use the bash <code>select</code> statement for a command loop. The variable in the select statement is always blank. Here is a simple script that illustrates the problem:</p>
  
  <pre><code>#!/bin/bash
  
  select term in one two exit
  do
    echo you selected $term
    case $term in
      one ) echo one; break;;
      two ) echo two; break;;
      exit ) echo will exit; return;;
    esac
  done
  </code></pre>
  
  <p>Here is what happens when I run this script:</p>
  
  <pre><code>$ ./test.sh 
  1) one
  2) two
  3) exit
  #? one
  you selected
  #? two
  you selected
  #? exit
  you selected
  #? ^D
  </code></pre>
  
  <p>Anyone know what I might be doing wrong? I'm on Mac OS X 10.7.3. <code>/bin/bash --version</code> shows: GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)</p>