#!/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;
Published in: Bash
Download

Related snippets