Have variable in BASH script.
If we escape it with single quotes or backslash it works to read into that first script correctly, but when passing to the second BASH script if fails.
If we double escape, then we nullify for the first script.
In other words, both of the tries below do not work:
$myvar = ''textstringwith$sign'' (this is two single quotes, not a double quote)
$myvar = "textstringwith\\$sign"
Do one of each type of escape.
$myvar = 'textstringwith\$sign'
The first BASH script parse sees the variable as:
The second BASH script sees the passed variable as: