[MacPorts] #27299: defect: reinplace dequotes backslashes incompatibly with sed -E
MacPorts
noreply at macports.org
Sat Nov 13 00:51:24 PST 2010
#27299: defect: reinplace dequotes backslashes incompatibly with sed -E
----------------------------------------------+-----------------------------
Reporter: james.from.wellington@… | Owner: macports-tickets@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: base | Version: 1.9.2
Resolution: invalid | Keywords:
Port: |
----------------------------------------------+-----------------------------
Comment(by james.from.wellington@…):
Inserting an explanation for the next confused person.
It's at least partly a feature. As JRM says, the portfile is parsed with
the ordinary tcl parser, and happens before anything we can see in the
callstack.
Tcl recognises two kinds of strings.
"This kind" does both dollar ($) and backslash (\) substitution before
anything I can see gets the data.
{This kind} does neither.
I want dollar substitutions, but not backslash substitutions.
I intend to implement a new option in reinplace, to undo the backslash
substitutions. When it's working for me I will open a new ticket as an
enhancement.
--
Ticket URL: <https://trac.macports.org/ticket/27299#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list