OILS / ysh / testdata / no-dynamic-scope.osh View on Github | oilshell.org

19 lines, 14 significant
1global_var=global
2
3g() {
4 local g_var=f
5 echo $g_var
6 echo $f_var
7
8 var oil_var = global_var
9 echo $oil_var
10}
11
12f() {
13 local f_var=f
14 echo $f_var
15 g
16}
17
18f
19