source:
MondoRescue/branches/2.2.9/mindi-busybox/shell/hush_test/hush-misc/func_local2.tests@
2837
| Last change on this file since 2837 was 2725, checked in by , 15 years ago | |
|---|---|
|
|
| File size: 126 bytes | |
| Line | |
|---|---|
| 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.
