-------- CASE: control_flow Line 135 of 'test/runtime-errors.sh' break ^~~~~ osh warning: Invalid control flow at top level Line 136 of 'test/runtime-errors.sh' continue ^~~~~~~~ osh warning: Invalid control flow at top level SHOULD NOT GET HERE STATUS: 0 -------- CASE: no_such_command osh error: 'ZZZZZ': No such file or directory Line 39 of 'test/runtime-errors.sh' ZZZZZ ^~~~~ [12941] '' command exited with status 127 STATUS: 127 -------- CASE: no_such_command_commandsub osh error: 'ZZZZZ': No such file or directory SHOULD NOT GET HERE STATUS: 0 -------- CASE: no_such_command_heredoc osh error: 'ZZZZZ': No such file or directory one three SHOULD NOT GET HERE STATUS: 0 -------- CASE: failed_command Line 66 of 'test/runtime-errors.sh' false ^~~~~ [12951] '' command exited with status 1 STATUS: 1 -------- CASE: pipefail 0 Line 76 of 'test/runtime-errors.sh' false | wc -l ^~~~~ [12955] '' command exited with status 1 0 *** Error has no source location info *** [12952] 'Pipeline' exited with status 1 STATUS: 1 -------- CASE: pipefail_group Line 98 of 'test/runtime-errors.sh' echo hi | { cat; sh -c 'exit 42'; } | wc ^~ [12959] '' command exited with status 42 1 1 3 *** Error has no source location info *** [12957] 'Pipeline' exited with status 42 STATUS: 42 -------- CASE: pipefail_subshell Line 106 of 'test/runtime-errors.sh' echo hi | (cat; sh -c 'exit 42') | wc ^~ [12967] '' command exited with status 42 *** Error has no source location info *** [12965] 'Subshell' exited with status 42 1 1 3 *** Error has no source location info *** [12963] 'Pipeline' exited with status 42 STATUS: 42 -------- CASE: pipefail_func Line 89 of 'test/runtime-errors.sh' echo hi | f | wc ^ [12972] '' command exited with status 42 1 1 3 *** Error has no source location info *** [12970] 'Pipeline' exited with status 42 STATUS: 42 -------- CASE: pipefail_while Line 118 of 'test/runtime-errors.sh' sh -c 'exit 42' ^~ [12979] '' command exited with status 42 2 6 12 *** Error has no source location info *** [12977] 'Pipeline' exited with status 42 STATUS: 42 -------- CASE: nonexistent osh error: 'nonexistent': No such file or directory STATUS: 127 -------- CASE: nounset Line 189 of 'test/runtime-errors.sh' echo $x ^~ Undefined variable 'x' STATUS: 1 -------- CASE: nounset_arith *** Error has no source location info *** Undefined variable 'x' STATUS: 1 -------- CASE: divzero Line 206 of 'test/runtime-errors.sh' echo $(( 1 / 0 )) ^ Divide by zero STATUS: 1 -------- CASE: divzero_var *** Error has no source location info *** Divide by zero (name) STATUS: 1 -------- CASE: string_to_int_arith osh warning: Invalid integer constant 'ZZZ' 5 *** Error has no source location info *** Invalid integer constant 'ZZZ' STATUS: 1 -------- CASE: string_to_hex osh warning: Invalid hex constant '0xGG' 1 SHOULD NOT GET HERE STATUS: 0 -------- CASE: string_to_octal osh warning: Invalid octal constant '018' 1 SHOULD NOT GET HERE STATUS: 0 -------- CASE: string_to_intbase osh warning: Digits 'GG' out of range for base 16 0 SHOULD NOT GET HERE STATUS: 0 -------- CASE: string_to_int_bool osh warning: Invalid integer constant 'a' *** Error has no source location info *** Invalid integer constant 'a' STATUS: 1