From bf2218c223c7c98fac959ee457d0a902c98cf575 Mon Sep 17 00:00:00 2001 From: Francisco Lopes Date: Tue, 18 Dec 2018 02:55:13 -0200 Subject: [PATCH] Use eval instead of invoking sh --- scripts/copycat_mode_quit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/copycat_mode_quit.sh b/scripts/copycat_mode_quit.sh index 8b291e1..940dbf8 100755 --- a/scripts/copycat_mode_quit.sh +++ b/scripts/copycat_mode_quit.sh @@ -19,7 +19,7 @@ unbind_prev_next_bindings() { unbind_all_bindings() { grep -v copycat <"${TMPDIR:-/tmp}/copycat_$(whoami)_recover_keys" | while read -r key_cmd; do - sh -c "tmux $key_cmd" + eval "tmux $key_cmd" done < /dev/stdin rm "${TMPDIR:-/tmp}/copycat_$(whoami)_recover_keys" }