From 68d5cb5dacbc80347119ac9cff365e5f04105ef1 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 24 Mar 2011 02:50:03 +0100 Subject: hush: fix a case where return in sourced file has no effect Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-misc/return1.right | 1 + shell/hush_test/hush-misc/return1.tests | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 shell/hush_test/hush-misc/return1.right create mode 100755 shell/hush_test/hush-misc/return1.tests (limited to 'shell/hush_test') diff --git a/shell/hush_test/hush-misc/return1.right b/shell/hush_test/hush-misc/return1.right new file mode 100644 index 0000000..7b24a35 --- /dev/null +++ b/shell/hush_test/hush-misc/return1.right @@ -0,0 +1 @@ +Ok:0 diff --git a/shell/hush_test/hush-misc/return1.tests b/shell/hush_test/hush-misc/return1.tests new file mode 100755 index 0000000..eeb92ef --- /dev/null +++ b/shell/hush_test/hush-misc/return1.tests @@ -0,0 +1,4 @@ +echo "true && return; echo Should not be printed" >return_sourced +. ./return_sourced +rm return_sourced +echo Ok:$? -- cgit v1.1