Add test that declarations are not dependent on inherited environment

This commit is contained in:
Eric Levy 2022-01-24 20:12:54 -05:00
parent c4cd099d65
commit 79231fad64
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,7 @@ base
subshell-simple
subshell-undeclared
subshell-source
subshell-clean
subshell-export
subshell-declare
function-list

9
meta-tests/subshell-clean.sh Executable file
View File

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