It varies, but in most languages, including shell, variable interpolation will only be performed when used within double quotes. In the export statement (again, dealing with shell) - you are not using a variable, you assigning a constant value to one.
You could not use quotes in all of those examples, the only exception being that you would have to escape the second "=" in the LS_OPTIONS export statement. You'd still get the desired results.
|