title: Value not assigned to variable in shell script
body: <p>I don't know what I do wrong, but this code just doesn't work for me:</p>
  
  <pre><code>mode="-P"
  select mmode in "default" "fast"; do
      case $mmode in
          default ) break;;
          fast ) mode="-T 2C -P" break;;
      esac
  done
  
  echo $mode
  </code></pre>
  
  <p>The output is always "-P".
  Somebody please tell me where's the problem, thank you in advance!</p>