Bash Echoing Strange Variables

Echoing Strange Variables

Published in: Bash
#!/bin/bash
# vars.sh: Echoing Strange Variables

var="'(]\\{}\$\""
echo $var          # '(]\{}$"
echo "$var"        # '(]\{}$"   No difference

echo
IFS='\'
echo $var          # '(] {}$"   \ converted to space
echo "$var"        # '(]\{}$"

exit 0;