diff options
Diffstat (limited to 'shell/hush_test/hush-misc')
-rw-r--r-- | shell/hush_test/hush-misc/func4.right | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/func4.tests | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/func4.right b/shell/hush_test/hush-misc/func4.right new file mode 100644 index 0000000..0c87e31 --- /dev/null +++ b/shell/hush_test/hush-misc/func4.right @@ -0,0 +1,2 @@ +24 +Done diff --git a/shell/hush_test/hush-misc/func4.tests b/shell/hush_test/hush-misc/func4.tests new file mode 100755 index 0000000..db3f15a --- /dev/null +++ b/shell/hush_test/hush-misc/func4.tests @@ -0,0 +1,7 @@ +func() { + eval "echo \"\${val_${1}}\"" +} + +val_x=24 +(func x) +echo Done |