I guess you want to expand the shell variable in your awk-one-liner. So use " " instead of ' ' . " " allows to interpret the shell variables before awk/perl has a go at it.
And how it's going with assigning output to $VAR in the other thread? Did you manage to get it to work? I'm just curious bcs. you did not give any feedback...
I am not referring to bash. I'm referring to awk/perl. If CURR_MP contains a "." or a "*" or a "/" or a "\" or a "[" or a "]" or a "(" or a ")" or a "+" or a "?" or a .... etc ... any character that is special to that flavor or regular expression, the outcome may very well not be the desired fixed string match.
If these characters will not occur in CURR_MP, then the solution is just fine. If they can, and if they must be matched literally, the solution is useless. I'm just pointing it out in case it's an issue.