---

Bash Quoting

“he basics of quoting are simple, use single or double quotes
when a value contains spaces:

a="hello world"
a='hello world'

“But single and double quotes are different. Single quotes don’t
support any kind of variable substitution or escaping of special
characters inside the quoted string. Double quotes, on the other
hand, support both:”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis