Assuming you mean in shell scripting:
Quick answer - there is no difference.
So why use one or the other? Using the ${...} version allows you to embed variables within strings, separating the variable from surrounding text.
Bash also allows some string manipulations inside the brackets.
Last edited by astrogeek; 02-01-2014 at 01:31 AM.
Reason: Typos, grammer, too many words...
|