Hi
macOS version o the ed must be posix compliant
printf %s\n H '# test' q | ed
?
script, line 2: unknown command
your versions works like gnu ed
printf %s\n H '# test' q | ed
no any messages
if add -G still works like gnu ed, is that how it should be? If yes, how to use your version of ed as posix compatible?