In the last episode (Dec 12), Paul Murphy said:
>  I am having trouble understanding what is the difference between
>  "$variable" and "${variable}".
> 
>  I have read sh(1) and understand than ${} is a "parameter" and can
>  contain more than just a variable, but browsing through /etc/rc I
>  see lots of "${variable}" (i.e. "case ${svc_val} in").
> 
>  Is this just for readability or is there some functional difference?

Mainly readability, but sometimes you need the {}'s to delimit the
variable name: compare

echo texttext${variablehere}texttext

vs.

echo texttext$variableheretexttext

-- 
        Dan Nelson
        [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to