source:
MondoRescue/branches/2.2.9/mindi-busybox/shell/hush_test/hush-misc/func_local2.tests@
3574
Last change on this file since 3574 was 3320, checked in by , 10 years ago | |
---|---|
|
|
File size: 126 bytes |
Rev | Line | |
---|---|---|
[3320] | 1 | x=1 |
2 | f() { echo $x; local x=$((x+1)); echo $x; } | |
3 | g() { f; echo $x; f; local x=$((x+1)); f; echo $x; f; } | |
4 | f | |
5 | g | |
6 | echo $x | |
7 | echo Done |
Note:
See TracBrowser
for help on using the repository browser.