diff options
author | Denys Vlasenko | 2016-09-29 01:27:09 +0200 |
---|---|---|
committer | Denys Vlasenko | 2016-09-29 01:27:09 +0200 |
commit | 992e0ff7e9a71a85a89d4fb7b4e6ace7ba74e2ba (patch) | |
tree | 4cfe18aad25d0ea26a4f40c3570a94beb0e0bc27 /shell/hush_test/hush-misc | |
parent | 46a45ce02f2c6e775d437c66c5965458bb5d35d8 (diff) | |
download | busybox-992e0ff7e9a71a85a89d4fb7b4e6ace7ba74e2ba.zip busybox-992e0ff7e9a71a85a89d4fb7b4e6ace7ba74e2ba.tar.gz |
hush: fix ". EMPTY_LINE" not setting $? to 0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-misc')
-rw-r--r-- | shell/hush_test/hush-misc/source3.right | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/source3.tests | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/source3.right b/shell/hush_test/hush-misc/source3.right new file mode 100644 index 0000000..bdf9001 --- /dev/null +++ b/shell/hush_test/hush-misc/source3.right @@ -0,0 +1,2 @@ +Zero:0 +Zero:0 diff --git a/shell/hush_test/hush-misc/source3.tests b/shell/hush_test/hush-misc/source3.tests new file mode 100755 index 0000000..1abf156 --- /dev/null +++ b/shell/hush_test/hush-misc/source3.tests @@ -0,0 +1,6 @@ +# Test both empty file, and one-empty-line file +echo >sourced1 +true >sourced2 +false; . ./sourced1; echo Zero:$? +false; . ./sourced2; echo Zero:$? +rm sourced1 sourced2 |