bash.in 215 B

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