mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00:00
Add test that declarations may be propagated to descedant shells
This commit is contained in:
parent
e1b775a9da
commit
5e04b21a70
@ -9,6 +9,7 @@ subshell-export-nested
|
||||
subshell-unexport
|
||||
subshell-unexport-nested
|
||||
subshell-declare
|
||||
subshell-declare-nested
|
||||
function-list
|
||||
function-unload
|
||||
function-export
|
||||
|
15
meta-tests/subshell-declare-nested.sh
Executable file
15
meta-tests/subshell-declare-nested.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source ./mo
|
||||
cat <(moDeclare) - << "EOF" | bash
|
||||
cat <(moDeclare) - << "EOF2" | bash
|
||||
cat <(moDeclare) - << "EOF3" | bash
|
||||
cat <(moDeclare) - << "EOF4" | bash
|
||||
source ./run-basic-tests
|
||||
if (( FAIL )); then
|
||||
exit 1
|
||||
fi
|
||||
EOF4
|
||||
EOF3
|
||||
EOF2
|
||||
EOF
|
Loading…
Reference in New Issue
Block a user