From e1b775a9da74a7ccf30b601588168b7e4e345eb8 Mon Sep 17 00:00:00 2001 From: Eric Levy Date: Mon, 24 Jan 2022 20:32:26 -0500 Subject: [PATCH] Add test that unmarking for export works in child shell from original --- meta-tests.txt | 1 + meta-tests/subshell-unexport-nested.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 meta-tests/subshell-unexport-nested.sh diff --git a/meta-tests.txt b/meta-tests.txt index 9a86f42..b7f378f 100644 --- a/meta-tests.txt +++ b/meta-tests.txt @@ -7,6 +7,7 @@ subshell-clean-undeclared subshell-export subshell-export-nested subshell-unexport +subshell-unexport-nested subshell-declare function-list function-unload diff --git a/meta-tests/subshell-unexport-nested.sh b/meta-tests/subshell-unexport-nested.sh new file mode 100755 index 0000000..9d0f2df --- /dev/null +++ b/meta-tests/subshell-unexport-nested.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +source ./mo +moExport +bash << "EOF" +moUnexport +bash << "EOF2" +source ./run-basic-tests +if ! (( FAIL )); then + exit 1 +fi +EOF2 +EOF