From 65817e6bdd3997e644db763fc9ab723db6634d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20H=C3=B6xter?= Date: Fri, 21 Sep 2018 17:23:46 +0200 Subject: [PATCH] remove usage of echo -e from Debian init script The debian default "/bin/sh" is dash. The build in echo implementation in dash does not support "-e", so it echos a verbatim "-e" but the \t are none the less parsed and represented as a tabulator. In case someone changed "/bin/sh" to a none default shell, it might result in varbatim "\t" in the output. Alternative would be to call "/bin/echo -e" explicitly. --- packaging/debian/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/debian/init b/packaging/debian/init index 7f37e3ad..193fa5a9 100644 --- a/packaging/debian/init +++ b/packaging/debian/init @@ -36,7 +36,7 @@ start() { fi echo -n 'Starting service' >&2 su -c "$COMMAND" $RUNAS -s /bin/sh & - echo -e '\t\tOK' >&2 + echo '\t\tOK' >&2 } stop() { @@ -46,7 +46,7 @@ stop() { fi echo -n 'Stopping service' >&2 kill -15 $(cat "$PIDFILE") && rm -f "$PIDFILE" - echo -e '\t\tOK' >&2 + echo '\t\tOK' >&2 } status() {