diff options
author | Denys Vlasenko | 2017-07-31 18:02:28 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-31 18:02:28 +0200 |
commit | 5b3d2eb327ce7e1c55c6c94bc70782f733d59990 (patch) | |
tree | 5e58b81282353c4cb6552bb6b44b336c28132f93 /shell/hush_test | |
parent | d0fff9155bc55d9576be4c6ba5f656f5b4856ac4 (diff) | |
download | busybox-5b3d2eb327ce7e1c55c6c94bc70782f733d59990.zip busybox-5b3d2eb327ce7e1c55c6c94bc70782f733d59990.tar.gz |
hush: fix "true | func_with_return" not allowing return.
function old new delta
pseudo_exec_argv 305 312 +7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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:$? |