Add test that functions run in child if explicitly imported

This commit is contained in:
Eric Levy 2022-01-24 17:14:51 -05:00
parent 0036b48238
commit 9ad445e280
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,4 @@
base
subshell-simple
subshell-undeclared
subshell-source

8
meta-tests/subshell-source.sh Executable file
View File

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