From c184da4342179917b27691d6a996917ddaf998da Mon Sep 17 00:00:00 2001 From: Scott Richardson Date: Wed, 13 May 2020 17:17:57 -0400 Subject: [PATCH] bugfix: this was causing a trap in macOS; see issue #242 --- linux/signal_tools.bsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/signal_tools.bsh b/linux/signal_tools.bsh index 7de84ec86..4e21fd824 100644 --- a/linux/signal_tools.bsh +++ b/linux/signal_tools.bsh @@ -72,7 +72,7 @@ function trap_chain() # Since there was no signal already assigned, the sanitize signal name is # not in last_info, so we'll have to make it - last_info="$(trap '' "${2}"; trap -p "${2}" | { read x ; echo "${x##* }"; })" + last_info="$((trap '' "${2}"; trap -p "${2}") | { read x ; echo "${x##* }"; })" clear_a "_TRAP_CHAIN_${last_info}" last_info="_TRAP_CHAIN_${last_info}_LAST_PID"