I used to use ''
and ""
(single and double-quotes) interchangeably on the command line, but I recently noticed that '$HOME/some/dir'
is not expanded, while "$HOME/some/dir"
is. I searched around a little bit and found that ""
allows some protection of special characters, while ''
allows full protection. So what other characters are protected by ''
and not ""
?
EDIT: What are practical situations in which these differences might be significant?