Remove bashism in lttng-syscalls-generate-headers.sh
authorJon Bernard <jbernard@tuxion.com>
Mon, 13 May 2013 15:38:17 +0000 (11:38 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 May 2013 15:38:44 +0000 (11:38 -0400)
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 <mathieu.desnoyers@efficios.com>
instrumentation/syscalls/lttng-syscalls-generate-headers.sh

index 046dc0676e390d55575e5d50b0e4fae5fd91bbd6..1754ae89faf29bf42af70a4a216a99f071ef836b 100755 (executable)
@@ -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'\
This page took 0.025973 seconds and 4 git commands to generate.