hush: fix a case where return in sourced file has no effect
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1
shell/hush_test/hush-misc/return1.right
Normal file
1
shell/hush_test/hush-misc/return1.right
Normal file
@@ -0,0 +1 @@
|
||||
Ok:0
|
4
shell/hush_test/hush-misc/return1.tests
Executable file
4
shell/hush_test/hush-misc/return1.tests
Executable file
@@ -0,0 +1,4 @@
|
||||
echo "true && return; echo Should not be printed" >return_sourced
|
||||
. ./return_sourced
|
||||
rm return_sourced
|
||||
echo Ok:$?
|
Reference in New Issue
Block a user