Tcl question: expansion of variable names

Joshua Root jmr at macports.org
Tue Sep 4 12:04:13 UTC 2018


On 2018-9-4 19:15 , Mojca Miklavec wrote:
> Hi,
> 
> I would like to ask for some help making a little trick work. Here's
> my attempt of a PR:
>     https://github.com/macports/macports-ports/pull/2509/files
> 
> Each subport has a different checksum URL:
>     https://geant4.web.cern.ch/support/download_archive?page=0
>     https://geant4.web.cern.ch/support/download_archive?page=1
>     https://geant4.web.cern.ch/support/download_archive?page=2
> etc.
> 
> I would like to code this inside a table, but somehow I cannot figure
> out how to properly resolve the variable names when using this hack.

Wrapping a string in braces disables variable substitution. Use quotes,
or better, the list command, if you want to set geant.versions_info to a
list with substituted variables.

- Josh


More information about the macports-dev mailing list