OILS / spec / testdata / module2 / for-xtrace.ysh View on Github | oilshell.org

13 lines, 8 significant
1const __provide__ = :| increment counter |
2
3echo '[for-xtrace]'
4
5var counter = 5
6
7proc increment {
8 echo "counter = $counter"
9 setglobal counter += 1
10}
11
12increment
13