From ea14009fcc325f8f2d5348efc2d7ea9d8d04c4e3 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Mon, 13 May 2013 11:38:17 -0400 Subject: [PATCH] Remove bashism in lttng-syscalls-generate-headers.sh Options to echo are not portable. In particular, the 'echo -e' option is implemented by some shells, including bash, to expand escape sequences. However, dash is one of the other family of shells that instead expands escape sequences by default. The printf command is portable and much more reliable. Signed-off-by: Mathieu Desnoyers --- instrumentation/syscalls/lttng-syscalls-generate-headers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/syscalls/lttng-syscalls-generate-headers.sh b/instrumentation/syscalls/lttng-syscalls-generate-headers.sh index 046dc067..1754ae89 100755 --- a/instrumentation/syscalls/lttng-syscalls-generate-headers.sh +++ b/instrumentation/syscalls/lttng-syscalls-generate-headers.sh @@ -59,7 +59,7 @@ if [ "$CLASS" = integers ]; then NRARGS=0 -echo -e \ +printf \ 'SC_DECLARE_EVENT_CLASS_NOARGS(syscalls_noargs,\n'\ ' TP_STRUCT__entry(),\n'\ ' TP_fast_assign(),\n'\ -- 2.34.1