Re: [PATCH v2] selftests/ftrace: Use printf for backslash included command

From: Masami Hiramatsu
Date: Mon May 11 2020 - 10:05:12 EST


On Mon, 11 May 2020 13:46:35 +0000
David Laight <David.Laight@xxxxxxxxxx> wrote:

> From: Masami Hiramatsu
> > Sent: 11 May 2020 14:38
> >
> > Hi Andreas and David,
> >
> > OK, what about this fix?
>
> No idea what it is trying to do or why.
> Just a way of avoiding the differences between SYSV and BSD /bin/echo.
>
> IIRC Posix allows both behaviours (and probably others).

Ah, I got it. That's why POSIX said "the results are implementation-defined."

https://pubs.opengroup.org/onlinepubs/009695399/utilities/echo.html

Thank you!

--
Masami Hiramatsu <mhiramat@xxxxxxxxxx>