modern Tcl and correct quoting

Lawrence Velázquez larryv at macports.org
Wed Jun 12 10:59:48 PDT 2013


On Jun 12, 2013, at 8:00 AM, Rainer Müller <raimue at macports.org> wrote:

>> 	remove quotes around values when they are not needed
> 
> The style that evolved in the MacPorts community is to use ${foo} for
> expansion instead of $foo both in Portfiles and in base. I don't think
> there is a technical reason for this, it just happened to be
> historically this way.
> 
> Most of us learned Tcl by writing code for Portfiles and base, so this
> style just sticks.

It's also somewhat more consistent, since many of our variables contain periods, which of course require braces for expansion.

vq


More information about the macports-dev mailing list