Date: Fri, 07 Jan 2005 09:36:35 -0700 From: Tom Vilot <tom@vilot.com> To: FreeBSD Questions <questions@freebsd.org> Subject: Re: my lame attempt at a shell script... Message-ID: <41DEBA93.8060909@vilot.com>
next in thread | raw e-mail | index | archive | help
Eric F Crist wrote:
> What is the point of the { } around some variables?
It's not strictly necessary, except in some cases. i.e:
m=34
echo $m
You don't need it there.
But you would want it here:
f=/var/filename
fname=${f//name/name2}
It's when you need to differentiate the variable name from operations
around it ... for want of a better explanation ....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41DEBA93.8060909>
