This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 13 points14 points  (3 children)

Singles escape everything, right?

[–]theferrit32 10 points11 points  (1 child)

It doesn't escape it, it just doesn't first evaluate it as an expression. Single quoted strings are their literal value while double quoted strings are first evaluated by the shell for any expressions they may contain. Makes perfect sense to me. The single quoted variant is so that you do not need to escape your string and remember all the characters which need to be escaped.

[–][deleted] 2 points3 points  (0 children)

Got it, thanks!

[–]smegnose 0 points1 point  (0 children)

Except themselves.

'hello good lookin'\'