title: Bash c-style if statement and styling techniques
body: <p>From what I understand you can do C-style for and while loops in bash.</p>
  
  <pre><code>LIMIT=10
  
  for ((a=1; a &lt;= LIMIT ; a++))  # Double parentheses, and "LIMIT" with no "$".
  do
    echo -n "$a "
  done                           # A construct borrowed from 'ksh93'.
  </code></pre>
  
  <p>And even ternary operators.</p>
  
  <pre><code>(( var0 = var1&lt;98?9:21 ))
  </code></pre>
  
  <p>How would you do this with the <code>if</code> statement?</p>
  
  <p>Also why don't they implement braces like in C? What is the logic with using all of these keywords like <code>done</code>, <code>do</code>, <code>if</code>, and <code>fi</code>? I will be writing some scripts but bash appears very different.</p>
  
  <p>Are there any bash styling techniques or bash alternatives/plugins?  I would like to follow the standard, but coming from a C, Java and PHP background bash looks really weird. Maintainability and standards are important.</p>