Add test that unmarking functions for export indeed prevents exportation

This commit is contained in:
Eric Levy 2022-01-24 20:19:50 -05:00
parent 84edc13c1e
commit b1d679b7b4
2 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,7 @@ subshell-source
subshell-clean
subshell-clean-undeclared
subshell-export
subshell-unexport
subshell-declare
function-list
function-unload

11
meta-tests/subshell-unexport.sh Executable file
View File

@ -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