From 3aa5c462f88ead6b358bdcb97df22955b3138ccc Mon Sep 17 00:00:00 2001 From: Tyler Akins Date: Thu, 25 Nov 2021 15:36:47 -0600 Subject: [PATCH] Quoting variable This suggestion is brought to you by neema80 - thank you! This closes #48. --- mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mo b/mo index ba8e48d..c928d7c 100755 --- a/mo +++ b/mo @@ -302,7 +302,7 @@ moFindEndTag() { moFindString() { local pos string - string=${2%%$3*} + string=${2%%"$3"*} [[ "$string" == "$2" ]] && pos=-1 || pos=${#string} local "$1" && moIndirect "$1" "$pos" }