[MacPorts] #64326: app PortGroup: app.name unable to handle names with spaces
MacPorts
noreply at macports.org
Sat Jan 1 17:58:09 UTC 2022
#64326: app PortGroup: app.name unable to handle names with spaces
-------------------------+--------------------
Reporter: jasonliu-- | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: pg-app-1.0 |
-------------------------+--------------------
Comment (by jasonliu--):
Replying to [comment:1 ryandesign]:
> Did you try:
>
> {{{
> app.name AppName With Spaces
> }}}
>
> Works fine in the chromium-bsu, frozenbubble2, and wesnoth ports, for
example.
Ironically no, that was the one iteration I didn't try! And yes you're
right, it does work, although years of programming has been drilled into
me to never try to use a string naked like that, lol! Also, it would seem
to preclude the use of names that have been stored in a variables, since
{{{
set foo AppName With Spaces
app.name $foo
}}}
throws a Tcl error of {{{wrong # args: should be "set varName
?newValue?"}}}, and
{{{
set foo "AppName With Spaces"
# or
set foo {AppName With Spaces}
# in combination with any of
app.name $foo
# or
app.name "$foo"
# or
app.name {$foo}
}}}
goes right back to resulting in an output of {{{{AppName With
Spaces}.app}}}. (The last {{{app.name}}} actually results in
{{{{$foo}.app}}}, lol)
--
Ticket URL: <https://trac.macports.org/ticket/64326#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list