Escape value so the expander gives it back unchanged: a \ goes before
each $ the expander would act on (review 5916926264 #4). That is a $
after a `` (the pair would read as \$) and a $ that starts a
reference. Any other $ (cost $, $!) is left alone.
Whether a $ starts a reference depends on the text after it, escapes
included (an escaped \$ hides a } from a braced default's search), so
the scan runs right to left over the already-escaped tail.
Parameters
value: string
A literal value.
Returns string
The text to write, which expands to value whatever the
variables.
Escape
valueso the expander gives it back unchanged: a\goes before each$the expander would act on (review 5916926264 #4). That is a$after a `` (the pair would read as\$) and a$that starts a reference. Any other$(cost $,$!) is left alone.Whether a
$starts a reference depends on the text after it, escapes included (an escaped\$hides a}from a braced default's search), so the scan runs right to left over the already-escaped tail.