diff options
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-misc/func_return1.right (renamed from shell/hush_test/hush-misc/func6.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/func_return1.tests (renamed from shell/hush_test/hush-misc/func6.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-misc/func_return2.right | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/func_return2.tests | 6 |
4 files changed, 8 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/func6.right b/shell/hush_test/hush-misc/func_return1.right index 0ebd8e5..0ebd8e5 100644 --- a/shell/hush_test/hush-misc/func6.right +++ b/shell/hush_test/hush-misc/func_return1.right diff --git a/shell/hush_test/hush-misc/func6.tests b/shell/hush_test/hush-misc/func_return1.tests index 029c3e8..029c3e8 100755 --- a/shell/hush_test/hush-misc/func6.tests +++ b/shell/hush_test/hush-misc/func_return1.tests diff --git a/shell/hush_test/hush-misc/func_return2.right b/shell/hush_test/hush-misc/func_return2.right new file mode 100644 index 0000000..0ebd8e5 --- /dev/null +++ b/shell/hush_test/hush-misc/func_return2.right @@ -0,0 +1,2 @@ +Two:2 +Two:2 diff --git a/shell/hush_test/hush-misc/func_return2.tests b/shell/hush_test/hush-misc/func_return2.tests new file mode 100755 index 0000000..a049dd1 --- /dev/null +++ b/shell/hush_test/hush-misc/func_return2.tests @@ -0,0 +1,6 @@ +f1() { return 2; } +f1 +echo Two:$? +false +true | f1 +echo Two:$? |