What's the Difference Between Single and Double Quotes in the Bash Shell?
Posted on: 09/28/2010 08:08 AM

Howtogeek posted an article on the difference between single and double quotes in the Bash Shell

What's the Difference Between Single and Double Quotes in the Bash Shell?


Enclosing text in quotation marks is fairly standard practice on the command line, especially when dealing with files that have spaces in the names, but how do you know whether to use single or double quotes? Let's take a look at the difference, and when you should use one vs the other. The general rule is that double quotes still allow expansion of variables within the quotes, and single quotes don't. Keep reading.



Printed from Linux Compatible (http://www.linuxcompatible.org/news/story/whats_the_difference_between_single_and_double_quotes_in_the_bash_shell.html)