From a9859427fde7bbeff287afd021831766100c415a Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Mon, 20 Jun 2022 12:20:35 +0900 Subject: [PATCH] lib/utils (_omb_util_prompt_command_hook): Preserve $? --- lib/utils.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils.sh b/lib/utils.sh index 43e7118..08233a7 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -317,6 +317,7 @@ _omb_util_prompt_command_hook() { _omb_util_setexit "$status" "$lastarg" eval -- "$hook" done + _omb_util_setexit "$status" } _omb_util_unload_hook+=('_omb_util_prompt_command=()')