From 884a5e9c1997cab080855f23d34ab25e50bb83be Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Thu, 28 Aug 2014 13:53:09 +0200 Subject: [PATCH] Improve default restored program command matching --- scripts/process_restore_helpers.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/process_restore_helpers.sh b/scripts/process_restore_helpers.sh index bc72ffa..824dff6 100644 --- a/scripts/process_restore_helpers.sh +++ b/scripts/process_restore_helpers.sh @@ -74,7 +74,8 @@ _process_on_the_restore_list() { local restore_list="$(_restore_list)" local proc for proc in $restore_list; do - if [[ "$pane_full_command" =~ (^$proc) ]]; then + # regex matching the command makes sure process is a "word" + if [[ "$pane_full_command" =~ (^${proc} ) ]] || [[ "$pane_full_command" =~ (^${proc}$) ]]; then return 0 fi done