Improve default restored program command matching

This commit is contained in:
Bruno Sutic 2014-08-28 13:53:09 +02:00
parent 8cb5b21e2f
commit 884a5e9c19
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C

View File

@ -74,7 +74,8 @@ _process_on_the_restore_list() {
local restore_list="$(_restore_list)" local restore_list="$(_restore_list)"
local proc local proc
for proc in $restore_list; do 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 return 0
fi fi
done done