From b1d679b7b45c8286fd7f10231d9715b0dc28773e Mon Sep 17 00:00:00 2001 From: Eric Levy Date: Mon, 24 Jan 2022 20:19:50 -0500 Subject: [PATCH] Add test that unmarking functions for export indeed prevents exportation --- meta-tests.txt | 1 + meta-tests/subshell-unexport.sh | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100755 meta-tests/subshell-unexport.sh diff --git a/meta-tests.txt b/meta-tests.txt index 0a9063d..60e75c5 100644 --- a/meta-tests.txt +++ b/meta-tests.txt @@ -5,6 +5,7 @@ subshell-source subshell-clean subshell-clean-undeclared subshell-export +subshell-unexport subshell-declare function-list function-unload diff --git a/meta-tests/subshell-unexport.sh b/meta-tests/subshell-unexport.sh new file mode 100755 index 0000000..b0c1fe5 --- /dev/null +++ b/meta-tests/subshell-unexport.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +source ./mo +moExport +moUnexport +bash << "EOF" +source ./run-basic-tests +if ! (( FAIL )); then + exit 1 +fi +EOF