From 9af55a89e11132cc6875767128cba65ec6446470 Mon Sep 17 00:00:00 2001 From: Adrian Fraiha Date: Fri, 14 Apr 2023 11:39:52 -0400 Subject: [PATCH] echo is not the most portable method to pipe output. In some systems, `echo -n hello` will output `"-n hello"`. `printf` is a more reliable way to "echo" variables without newlines. --- rel/files/riak-admin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rel/files/riak-admin b/rel/files/riak-admin index 2f0d8f484..c52c885d5 100755 --- a/rel/files/riak-admin +++ b/rel/files/riak-admin @@ -555,7 +555,7 @@ The following commands modify users and security ACLs for Riak: } escape() { - echo -n "$1" | sed 's/"/\\"/g' + printf '%s' "$1" | sed 's/"/\\"/g' } btype_admin()