Bash Escape специальных символов в переменной
# Use Shell Parameter Expansion:
foo_esc="${foo@Q}"
VasteMonde
# Use Shell Parameter Expansion:
foo_esc="${foo@Q}"
use "\" to use the literal value of the next character (except newline)