mirror of
https://github.com/tests-always-included/mo.git
synced 2025-04-09 18:21:15 +00:00
Add test that functions are not inherited into clean environment
This commit is contained in:
parent
79231fad64
commit
84edc13c1e
@ -3,6 +3,7 @@ subshell-simple
|
||||
subshell-undeclared
|
||||
subshell-source
|
||||
subshell-clean
|
||||
subshell-clean-undeclared
|
||||
subshell-export
|
||||
subshell-declare
|
||||
function-list
|
||||
|
10
meta-tests/subshell-clean-undeclared.sh
Executable file
10
meta-tests/subshell-clean-undeclared.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user