e0eaca918e
function execution halts entirely on a invalid base, so we never actually get to our 'return 1'. I'm not sure how our expected failures ever actually worked, but it's quite plain to see that: $ a=$(( 2#3 )); echo hi Never echos "hi". Use a subshell in valid_number_of_base so that we can properly "trap" execution, and return a meaningful result. |
||
---|---|---|
.. | ||
common | ||
test_mangle | ||
test_option_twiddling | ||
test_valid_number_of_base |