[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87eerq1tcd.fsf@igel.home>
Date: Mon, 11 May 2020 15:42:10 +0200
From: Andreas Schwab <schwab@...ux-m68k.org>
To: Masami Hiramatsu <mhiramat@...nel.org>
Cc: Shuah Khan <shuah@...nel.org>,
Steven Rostedt <rostedt@...dmis.org>,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org,
Tom Zanussi <tom.zanussi@...ux.intel.com>,
Li Philip <philip.li@...el.com>,
Liu Yiding <yidingx.liu@...el.com>,
Xiao Yang <yangx.jy@...fujitsu.com>,
David Laight <David.Laight@...LAB.COM>
Subject: Re: [PATCH v2] selftests/ftrace: Use printf for backslash included
command
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@...ux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Powered by blists - more mailing lists