test command_not_found

This commit is contained in:
pvincent
2026-07-24 14:41:01 +04:00
parent 626afc2987
commit d17fd93d60
3 changed files with 9 additions and 4 deletions
+1
View File
@@ -51,6 +51,7 @@ fail_type subshell_term SUBSHELL_TERM
fail_type unbound_variable UNBOUND_VARIABLE
fail_type false FALSE
fail_type return RETURN
fail_type command_not_found COMMAND_NOT_FOUND
failed=$((TEST_COUNT - SUCCESS_COUNT))
if [[ $failed -gt 0 ]]; then
+5
View File
@@ -26,6 +26,11 @@ function do_last_false {
function do_return {
echo START
return 99
}
function do_command_not_found {
echo START
command_not_found A B C
echo SHOULD NOT APPEAR
}