func2.tests 124 B

123456789
  1. i=0
  2. while test $i != 2; do
  3. f() { echo First $i; }
  4. f
  5. f() { echo Second $i; }
  6. f
  7. : $((i++))
  8. done
  9. echo Done