Single Quotes Vs. Double Quotes

You can define strings in PowerShell with either single quotes or double quotes. What is the difference? The difference is that PowerShell does not perform interpolation with single quotes, but does perform interpolation with double quotes.

What is interpolation? This is where the PowerShell interpreter will look for valid string variable names inside the double quotes, and if found, will substitute the variable name with the string variables contents.



Posted: September 29th, 2014 at 1:59 pm
Last Updated on: November 1st, 2017 at 9:08 am

Leave a Reply