vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

bash.in (215B)


      1 #!/bin/bash
      2 # vim: set ft=bash sw=2 noet:
      3 
      4 # START_INDENT
      5 a = 10
      6 b = 20
      7 
      8 function add() {
      9 c = $((a + b))
     10 }
     11 
     12 function print {
     13 # do nothing
     14 }
     15 
     16 if [[ $c -ge 15 ]];
     17 then
     18 print("ok")
     19 else
     20 print("not ok")
     21 fi
     22 # END_INDENT