blob: 1a9ae559d1accaf95ca58eb17dbe150ef25250b4 [file] [log] [blame]
Ron Yorston85405c82015-11-03 09:37:40 +00001x=1
2f() { echo $x; local x=$((x+1)); echo $x; }
3g() { f; echo $x; f; local x=$((x+1)); f; echo $x; f; }
4f
5g
6echo $x
7echo Done