title: Bash - show suggestions
body: <p>using Git, when I type something like this:</p>
  
  <pre><code>$ git statsu
  </code></pre>
  
  <p>I get...</p>
  
  <pre><code>git: 'statsu' is not a git command. See 'git --help'.
  
  Did you mean this?
      status
  </code></pre>
  
  <p>How can I replicate this using Bash?</p>
  
  <hr>
  
  <p>I could, of course, do this by making a huge <code>case</code> of all possible transposed letters... but that would take forever, and seems really dirty...</p>
  
  <pre><code>case $1 in
    "statsu")
      suggestion="status"
    ;;
    "satsus")
      suggestion="status"
    ;;
    ...
  esac
  </code></pre>
  
  <p><strong>How can I replicate this behavior in my own program?</strong></p>
  
  <p><em>(related question <a href="https://stackoverflow.com/questions/5167367/how-can-i-make-git-do-the-did-you-mean-suggestion">here</a>, but that is talking about configuring git ITSELF to print this message)</em></p>