I have a single quote directly followed by a dollar sign and I wish to escape both.
typeset -g SOME_VALUE='${bash-variable}'
If I try to escape the dollar sign with two single quotes it thinks I’m trying to escape the two single quotes.
Underscores added for clarification
typeset -g SOME_VALUE='''_${bash-variable}'
instead of
typeset -g SOME_VALUE='_''${bash-variable}'