On 13/07/2021, Antonio Diaz Diaz wrote:

> Maybe it would be nice if the output would contain no backslashes, but I see nothing in the POSIX documentation nor in the ed manual that forces ed to remove them. AFAIK, GNU ed has never removed the slash before the '%'.

Leaving the escape character hanging around for the user to dispose of is rather unique among *nix tools, isn't it? It has the effect that printf and date format strings and such must go in a shell script. I'd say that's more than an inconvenience, and it's not to be expected from a GNU tool.


Regards,
M. Thomsen

Reply via email to