diff options
Diffstat (limited to 'shell/ash_test/ash-misc')
-rw-r--r-- | shell/ash_test/ash-misc/source5.right | 4 | ||||
-rwxr-xr-x | shell/ash_test/ash-misc/source5.tests | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/source5.right b/shell/ash_test/ash-misc/source5.right new file mode 100644 index 000000000..0587bad67 --- /dev/null +++ b/shell/ash_test/ash-misc/source5.right @@ -0,0 +1,4 @@ +0:arg0 1:arg1 2:arg2 +Ok1:0 +0:arg0 1:q 2:w +Ok2:0 diff --git a/shell/ash_test/ash-misc/source5.tests b/shell/ash_test/ash-misc/source5.tests new file mode 100755 index 000000000..40b6b83cd --- /dev/null +++ b/shell/ash_test/ash-misc/source5.tests @@ -0,0 +1,8 @@ +echo 'echo "0:$0 1:$1 2:$2"' >sourced1 +set -- 1 2 3 +"$THIS_SH" -c '. ./sourced1' arg0 arg1 arg2 +echo Ok1:$? +"$THIS_SH" -c '. ./sourced1 q w e' arg0 arg1 arg2 +echo Ok2:$? + +rm sourced1 |