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: John Cowan
Subject: Re: Escaped percent sign in shell escape (bang) command (ed 1.16)
Date: Wed, 14 Jul 2021 15:26:12 -0400

On Wed, Jul 14, 2021 at 10:32 AM Antonio Diaz Diaz <antonio@gnu.org> wrote:

What "current GNU behavior" are you talking about?
>

I had persuaded myself that in GNU ed, as opposed to BSD ed, !echo '\%'
output \ followed by the current filename, but that turns out not to be the
case.  Sorry.

> > I further argue that '\\' should send a single backslash to the shell, so
> > that you can write !echo '\\n" to get the output '\n'.
>
> Not so agreed. Now you can write !printf '\n' to get the output '\n'.
>

True.  I won't argue this point further.


reply via email to

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