I have the following bash script to replace parenthesis for curly braces.
VARS=${VARS//(/{}
VARS=${VARS//)/}}
The first line works OK, but the second one will only add a curly brace at the end.
If I try to escape the curly brace with a backslash, the backslash itself gets stored in the variable.
Is there a different way to escape these curly braces from the string?