Enclosing in single quotes turns off expansion of wildcards -i mean the outer quotes. This: "'$var'" would still get expanded. Sometimes you have to escape characters to keep them from being immediately expanded by the shell: \$var