Home » Questions » Computers [ Ask a new question ]

BASH: Bracketing Parameters

BASH: Bracketing Parameters

Simply, whats the fundamental difference between $param and ${param} ?

Asked by: Guest | Views: 215
Total answers/comments: 1
Guest [Entry]

"There is none. It's for echoing a variable immediately followed by a string.

For example, if you have $param, but you want to have right after it, ""lbs""

echo ""${param}lbs""

Where as

echo ""$paramlbs""

Would look for an incorrect variable name"