From f62023bb3183df31ce34d432650c187bd2e06929 Mon Sep 17 00:00:00 2001 From: pvincent Date: Tue, 21 Jul 2026 17:42:31 +0400 Subject: [PATCH] fixme SUBERROR exit code --- bin/miaou-bash | 1 + test/stub/scenario.bash | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/miaou-bash b/bin/miaou-bash index cdbbf94..4288434 100755 --- a/bin/miaou-bash +++ b/bin/miaou-bash @@ -30,6 +30,7 @@ function exit { function on_usr1 { cleanup + # FIXME: get exit code from MIAOU_BASH_SUBERROR builtin exit 1 } diff --git a/test/stub/scenario.bash b/test/stub/scenario.bash index 0ecda1b..877182f 100755 --- a/test/stub/scenario.bash +++ b/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 {