-------- CASE: control_flow Line 134 of 'test/runtime-errors.sh' break ^~~~~ osh warning: Invalid control flow at top level Line 135 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 38 of 'test/runtime-errors.sh' ZZZZZ ^~~~~ fatal: [28453] '' 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 65 of 'test/runtime-errors.sh' false ^~~~~ fatal: [28463] '' command exited with status 1 STATUS: 1 -------- CASE: pipefail 0 Line 75 of 'test/runtime-errors.sh' false | wc -l ^~~~~ fatal: [28467] '' command exited with status 1 0 *** Error has no source location info *** fatal: [28464] 'command__Pipeline' exited with status 1 STATUS: 1 -------- CASE: pipefail_group Line 97 of 'test/runtime-errors.sh' echo hi | { cat; sh -c 'exit 42'; } | wc ^~ fatal: [28471] '' command exited with status 42 1 1 3 *** Error has no source location info *** fatal: [28469] 'command__Pipeline' exited with status 42 STATUS: 42 -------- CASE: pipefail_subshell Line 105 of 'test/runtime-errors.sh' echo hi | (cat; sh -c 'exit 42') | wc ^~ fatal: [28478] '' command exited with status 42 *** Error has no source location info *** fatal: [28477] 'command__Subshell' exited with status 42 1 1 3 *** Error has no source location info *** fatal: [28475] 'command__Pipeline' exited with status 42 STATUS: 42 -------- CASE: pipefail_func Line 88 of 'test/runtime-errors.sh' echo hi | f | wc ^ fatal: [28484] '' command exited with status 42 1 1 3 *** Error has no source location info *** fatal: [28482] 'command__Pipeline' exited with status 42 STATUS: 42 -------- CASE: pipefail_while Line 117 of 'test/runtime-errors.sh' sh -c 'exit 42' ^~ fatal: [28489] '' command exited with status 42 2 6 12 *** Error has no source location info *** fatal: [28487] 'command__Pipeline' exited with status 42 STATUS: 42 -------- CASE: nonexistent osh error: 'nonexistent': No such file or directory STATUS: 127 -------- CASE: nounset Line 188 of 'test/runtime-errors.sh' echo $x ^~ fatal: Undefined variable 'x' STATUS: 1 -------- CASE: bad_var_ref Line 195 of 'test/runtime-errors.sh' echo ${!name} ^~~~ fatal: Bad indirect expansion: 'bad var name' STATUS: 1 -------- CASE: nounset_arith *** Error has no source location info *** fatal: Undefined variable 'x' STATUS: 1 -------- CASE: divzero Line 210 of 'test/runtime-errors.sh' echo $(( 1 / 0 )) ^ fatal: Divide by zero STATUS: 1 -------- CASE: divzero_var *** Error has no source location info *** fatal: Divide by zero (name) STATUS: 1 -------- CASE: array_arith *** Error has no source location info *** fatal: Can't use assignment like ++ or += on arrays STATUS: 1 -------- CASE: undef_arith Line 267 of 'test/runtime-errors.sh' (( undef++ )) # doesn't make sense ^~~~~ osh warning: Coercing undefined value to 0 in arithmetic context *** Error has no source location info *** fatal: Can't assign to characters of string 'undef' STATUS: 1 -------- CASE: undef_arith2 *** Warning has no location info *** osh warning: Invalid integer constant '' STATUS: 1 -------- CASE: string_to_int_arith Line 236 of 'test/runtime-errors.sh' echo $(( x + 5 )) ^ osh warning: Invalid integer constant 'ZZZ' 5 Line 240 of 'test/runtime-errors.sh' echo $(( x + 5 )) ^ fatal: Invalid integer constant 'ZZZ' STATUS: 1 -------- CASE: string_to_hex Line 247 of 'test/runtime-errors.sh' echo $(( 0xGG + 1 )) ^ osh warning: Invalid hex constant '0xGG' 1 SHOULD NOT GET HERE STATUS: 0 -------- CASE: string_to_octal Line 254 of 'test/runtime-errors.sh' echo $(( 018 + 1 )) ^~~ osh warning: Invalid octal constant '018' 1 SHOULD NOT GET HERE STATUS: 0 -------- CASE: string_to_intbase Line 261 of 'test/runtime-errors.sh' echo $(( 16#GG )) ^~ 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' Line 311 of 'test/runtime-errors.sh' [[ a -eq 0 ]] ^ fatal: Invalid integer constant 'a' STATUS: 1 -------- CASE: array_assign_1 Line 346 of 'test/runtime-errors.sh' s[0]=x # can't assign value ^~ fatal: Entries in value of type value__Str can't be assigned to STATUS: 1 -------- CASE: array_assign_2 Line 351 of 'test/runtime-errors.sh' array[0]=x ^~~~~~ fatal: Can't assign to readonly value STATUS: 1 -------- CASE: readonly_assign *** Error has no source location info *** fatal: Can't assign to readonly value 'x' STATUS: 1 -------- CASE: patsub_bad_glob Line 288 of 'test/runtime-errors.sh' echo ${x//[^]} ^ fatal: Error matching regex '([^])': Invalid regex syntax (func_regex_first_group_match) STATUS: 1