Add test that exported functions are inherited by descendants

This commit is contained in:
Eric Levy 2022-01-24 20:22:52 -05:00
parent b1d679b7b4
commit 772eec9672
2 changed files with 17 additions and 0 deletions

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

@ -0,0 +1,16 @@
#!/usr/bin/env bash
source ./mo
moExport
bash << "EOF"
bash << "EOF2"
bash << "EOF3"
bash << "EOF4"
source ./run-basic-tests
if (( FAIL )); then
exit 1
fi
EOF4
EOF3
EOF2
EOF