[106996] trunk/base/src/macports1.0/macports.tcl

Joshua Root jmr at macports.org
Fri Jun 14 07:32:30 PDT 2013


> Revision: 106996
>           https://trac.macports.org/changeset/106996
> Author:   larryv at macports.org
> Date:     2013-06-13 09:42:06 -0700 (Thu, 13 Jun 2013)
> Log Message:
> -----------
> macports.tcl: Restore braces for variable substitions immediately followed by other substitutions.
> 
> The "$" looks too similar to "S".
> 
> See https://lists.macosforge.org/pipermail/macports-dev/2013-June/022983.html.

I guess the $/S similarity is a good point, but those aren't actually
the ones I meant. I was referring to stuff like these:

if {[_is_valid_developer_dir "$xcode/Contents/Developer"]} {
(reader: "can a variable name contain a slash?")

ui_error "    # malformed Xcode at $xcode, version $vers"
(reader: "what about a comma?")

ui_warn "Failed to copy com.apple.dt.Xcode.plist to $target_dir: $result"
(reader: "colon?")

# actually $name-${version}_$revision
(ok, so this is a comment, but still: reader: "dash?")

set signature "$tarball.rmd160"
("dot?")

I know the rules, and I still have to think about it more when the
braces aren't there.

- Josh


More information about the macports-dev mailing list