Changeset 140015 for trunk/base


Ignore:
Timestamp:
Sep 6, 2015, 4:33:56 PM (5 years ago)
Author:
cal@…
Message:

base: Fix _mportkey with non-trivial variable names such as "test.run"

Additionally drop the return statement that's not really necessary, because the
return value of the eval'd script will automatically be returned to the parent
interpreter even without it. Use Tcl's [list] to ensure $key is correctly
quoted no matter what it is.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/macports.tcl

    r139170 r140015  
    31003100proc _mportkey {mport key} {
    31013101    set workername [ditem_key $mport workername]
    3102     return [$workername eval "return \$$key"]
     3102    return [$workername eval [list set $key]]
    31033103}
    31043104
Note: See TracChangeset for help on using the changeset viewer.