[MacPorts] #67537: grass @8.0.1: SyntaxError: invalid syntax
MacPorts
noreply at macports.org
Wed May 31 14:54:54 UTC 2023
#67537: grass @8.0.1: SyntaxError: invalid syntax
-------------------------+--------------------
Reporter: ryandesign | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: grass |
-------------------------+--------------------
Comment (by ryandesign):
Replying to [comment:1 nilason]:
> I assume you meant grass @8.2.1 (8.0.1 would suggest the obsolete grass8
port).
Yes, sorry, I was looking at the version in
[fb098cb6c9a5df0e16d138b692fdf81abdf61e27/macports-ports].
> Judging by the bot builds' logs, the reinplace fails to produce the
intended result on pre-11 macOS versions. I have no idea what could be the
reason to this.
I guess the ability to use `\n` to mean a newline in the replacement
pattern is not something that was present in the version of `sed` that
shipped before macOS 11:
{{{
% sw_vers -productVersion
10.15.7
% echo hello | sed 's|hello|&\nworld|'
hellonworld
%
}}}
A workaround is to literally insert a newline in the replacement string,
rather than an `n`:
{{{
% echo hello | sed 's|hello|&\
world|'
hello
world
%
}}}
--
Ticket URL: <https://trac.macports.org/ticket/67537#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list