Add test that declarations may be propagated to descedant shells

This commit is contained in:
Eric Levy 2022-01-24 22:13:47 -05:00
parent e1b775a9da
commit 5e04b21a70
2 changed files with 16 additions and 0 deletions

View File

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

View File

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