bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Escaped percent sign in shell escape (bang) command (ed 1.16)


From: Martin Thomsen
Subject: Re: Escaped percent sign in shell escape (bang) command (ed 1.16)
Date: Tue, 13 Jul 2021 22:50:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

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

[Prev in Thread] Current Thread [Next in Thread]