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

From: Andreas Schwab
Date: Mon May 11 2020 - 09:42:18 EST


On Mai 11 2020, Masami Hiramatsu wrote:

> - (! echo "$command" >> "$3" ) 2> /dev/null
> + (! printf "%s" "$command" >> "$3" ) 2> /dev/null

printf %s does not print a newline, you need printf '%s\n' for that.

Andreas.

--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."