Add test that functions run in child if exported by parent

This commit is contained in:
Eric Levy 2022-01-24 18:14:36 -05:00
parent 9ad445e280
commit cec3502e22
2 changed files with 12 additions and 0 deletions

View File

@ -2,3 +2,4 @@ base
subshell-simple
subshell-undeclared
subshell-source
subshell-export

11
meta-tests/subshell-export.sh Executable file
View File

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