Browse Source

fixme SUBERROR exit code

main
pvincent 4 days ago
parent
commit
f62023bb31
  1. 1
      bin/miaou-bash
  2. 7
      test/stub/scenario.bash

1
bin/miaou-bash

@ -30,6 +30,7 @@ function exit {
function on_usr1 {
cleanup
# FIXME: get exit code from MIAOU_BASH_SUBERROR
builtin exit 1
}

7
test/stub/scenario.bash

@ -13,10 +13,9 @@ function do_subshell_false {
}
function do_subshell_term {
# grep nope nope
echo "found=$(command_not_found)"
echo "found=$(grep nope nope)"
command_not_found
echo "found1=$(command_not_found)"
echo "found2=$(grep nope nope)"
echo SHOULD NOT SHOW UP!
}
function do_last_false {

Loading…
Cancel
Save