From d7e053492633ba0783253a74447844b5e5b0c526 Mon Sep 17 00:00:00 2001 From: clime Date: Jan 20 2019 19:38:01 +0000 Subject: [macros] we want use echo in query_output because command substitution eats a new line * this is important when e.g. counting output lines --- diff --git a/macros/macros.d/helpers/query_output.bash b/macros/macros.d/helpers/query_output.bash index 0d6176b..490b0b4 100644 --- a/macros/macros.d/helpers/query_output.bash +++ b/macros/macros.d/helpers/query_output.bash @@ -10,5 +10,5 @@ function query_output { QUERY_OUTPUT["$func_key($*)"]="$("$func" "$@")" fi - echo -n "${QUERY_OUTPUT["$func_key($*)"]}" + echo "${QUERY_OUTPUT["$func_key($*)"]}" }