before child_error fix

This commit is contained in:
pvincent
2026-07-30 09:11:34 +04:00
parent 062461e61e
commit 10ae8fef2d
3 changed files with 65 additions and 23 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ fail_type exit EXIT
fail_type command_not_found COMMAND_NOT_FOUND
fail_type source_not_found SOURCE_NOT_FOUND
fail_type file_not_found FILE_NOT_FOUND
fail_type subshell_error COMMAND_NOT_FOUND '(hint: prefer source than subshell)'
fail_type child_error CHILD_ERROR '(hint: prefer source than subshell)'
failed=${#failures[@]}
success=$((test_count - failed))
+3 -4
View File
@@ -90,11 +90,10 @@ function do_file_not_found {
./lib/fake/nope.bash
}
function do_subshell_error {
output=$(miaou_debug "---subshell1--$$ $BASHPID $PPID--")
output=$(miaou_debug "---subshell2--$$ $BASHPID $PPID--")
: "$output"
function do_child_error {
"$BASEDIR/extra/library.bash"
echo SHOULD NOT APPEAR
. "$BASEDIR/extra/library.bash"
}
function do_command_error {