Add test that unmarking for export works in child shell from original

This commit is contained in:
Eric Levy 2022-01-24 20:32:26 -05:00
parent 772eec9672
commit e1b775a9da
2 changed files with 14 additions and 0 deletions

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

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