hush: return builtin by Bayram Kurumahmut (kbayram AT ubicom.com)
~+200 bytes
This commit is contained in:
4
shell/hush_test/hush-misc/func3.right
Normal file
4
shell/hush_test/hush-misc/func3.right
Normal file
@@ -0,0 +1,4 @@
|
||||
One:1
|
||||
Zero:0
|
||||
One:1
|
||||
Five:5
|
8
shell/hush_test/hush-misc/func3.tests
Executable file
8
shell/hush_test/hush-misc/func3.tests
Executable file
@@ -0,0 +1,8 @@
|
||||
f() { false; return; echo BAD; };
|
||||
{ f; echo One:$?; }; echo Zero:$?
|
||||
|
||||
f() { false; return; };
|
||||
f; echo One:$?
|
||||
|
||||
f() { return 5; };
|
||||
f; echo Five:$?
|
Reference in New Issue
Block a user