From 1d2617dde129218b3e33f4672004cee026875285 Mon Sep 17 00:00:00 2001 From: Tyler Akins Date: Thu, 1 Oct 2020 07:37:48 -0500 Subject: [PATCH] Confirming multiple --source arguments work --- tests/source-multiple-1.vars | 2 ++ tests/source-multiple-2.vars | 2 ++ tests/source-multiple.expected | 3 +++ tests/source-multiple.sh | 8 ++++++++ 4 files changed, 15 insertions(+) create mode 100644 tests/source-multiple-1.vars create mode 100644 tests/source-multiple-2.vars create mode 100644 tests/source-multiple.expected create mode 100755 tests/source-multiple.sh diff --git a/tests/source-multiple-1.vars b/tests/source-multiple-1.vars new file mode 100644 index 0000000..433ea91 --- /dev/null +++ b/tests/source-multiple-1.vars @@ -0,0 +1,2 @@ +export A=from1 +export B=from1 diff --git a/tests/source-multiple-2.vars b/tests/source-multiple-2.vars new file mode 100644 index 0000000..55b5263 --- /dev/null +++ b/tests/source-multiple-2.vars @@ -0,0 +1,2 @@ +export B=from2 +export C=from2 diff --git a/tests/source-multiple.expected b/tests/source-multiple.expected new file mode 100644 index 0000000..c9f29f8 --- /dev/null +++ b/tests/source-multiple.expected @@ -0,0 +1,3 @@ +A: from1 +B: from2 +C: from2 diff --git a/tests/source-multiple.sh b/tests/source-multiple.sh new file mode 100755 index 0000000..7c3023c --- /dev/null +++ b/tests/source-multiple.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +cd "${0%/*}" || exit 1 +cat <