diff options
Diffstat (limited to 'shell/hush_test/hush-misc/source_argv_and_shift.tests')
-rwxr-xr-x | shell/hush_test/hush-misc/source_argv_and_shift.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/source_argv_and_shift.tests b/shell/hush_test/hush-misc/source_argv_and_shift.tests new file mode 100755 index 000000000..66353f3d7 --- /dev/null +++ b/shell/hush_test/hush-misc/source_argv_and_shift.tests @@ -0,0 +1,12 @@ +echo 'echo sourced_arg1:$1' >sourced1 +echo 'shift' >>sourced1 + +set -- 1 +. ./sourced1 +echo arg1:$1 + +set -- 1 +. ./sourced1 a +echo arg1:$1 + +rm sourced1 |