Add test that functions are not inherited into clean environment

This commit is contained in:
Eric Levy 2022-01-24 20:15:56 -05:00
parent 79231fad64
commit 84edc13c1e
2 changed files with 11 additions and 0 deletions

View File

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

View File

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