title: What is wrong with Emacs' indentation in shell scripts?
body: <p>When I enter a function I get indentation like so:</p>
  
  <pre><code>function bla {
      if []; then
          echo
          fi
  </code></pre>
  
  <p>The first line after the function header is indented 4 literal spaces, then after the <code>if</code> line, I get a literal tab that is 8 spaces long. The real kicker is, that when I try to delete the tab before <code>fi</code>, Emacs converts the tab into spaces and only deletes the first space.</p>
  
  <p>Btw, I press <kbd>Tab</kbd> at the beginning of every indented line, because somehow <kbd>Enter</kbd> does not indent automatically.</p>
  
  <p>EDIT: I guess I have to accept that indentation in Emacs is a little "special".</p>