From 43abd34b2bff48ead2ff69617eb8cb412b61b523 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 20 Jan 2019 14:19:43 -0700 Subject: [PATCH] fixed patter matching --- qndtmf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qndtmf.sh b/qndtmf.sh index 5750001..b607b96 100755 --- a/qndtmf.sh +++ b/qndtmf.sh @@ -17,7 +17,7 @@ # We set this to spaces, it will be set later GetLetter () { - if [[ $1 == ([0-9]) ]]; then + if [[ $1 == +([0-9]) ]]; then if [ $1 -gt 0 ] && [ $1 -le 26 ]; then LETTER=${LETTERS[$1-1]} return @@ -76,7 +76,7 @@ do fi REMOTE_NODE=${CMD:1:3} - if [[ $REMOTE_NODE != ([0-9]) ]]; then + if [[ $REMOTE_NODE != +([0-9]) ]]; then REMOTE_NODE=$BAD fi