title: How to make GETOPTS option-string options case sensitive?
body: <p>I'm working with a shell script that has, among others, the following two options:</p>
  
  <pre><code>OPT1=false
  OPT2=false
  
  while getopts "Alfqru:p:x:s:a:b:c:t:z:" opt; do
    case $opt in
      A) OPT1=true
         ;;
      a) OPT2=true
         ;;
      esac
  done
  </code></pre>
  
  <p>Now, when I run this script with either -a or -A, OPT1 is set to true and OPT2 is set to false. When I reverse the two cases, the opposite happens. What I want is for -A to make OPT1 true, and -a to make OPT2 true. So how do I make these options case-sensitive?</p>