More significance of “ “

While testing conditions it would be better to use double quotes as follows

If [ “$VAR” = “value” ]

So that if a blank value comes as the value of the variable VAR, it will not generate any error.

~ by devps on July 21, 2008.

Leave a Reply