From: Alain Spineux Date: Wed, 20 Apr 2022 17:52:00 +0000 (+0200) Subject: regress: fix escaping in "function" file, for json output X-Git-Tag: Beta-15.0.0~594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0035a02c407ea49815e55775ede78234b7ff50c6;p=thirdparty%2Fbacula.git regress: fix escaping in "function" file, for json output - "read" handle the escape characters by default, use '-r' to disable the handling of escape characters. --- diff --git a/regress/scripts/functions b/regress/scripts/functions index 9377b4f7e..b406dc126 100755 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -639,7 +639,7 @@ EOF local nb=0 cat $tmp/json.$$ | $bin/bconsole -c $conf/bconsole.conf -u 1 2>&1 > /dev/null grep '{' $tmp/json.$$.out > $tmp/json.$$.list - while read line + while read -r line do cat < $tmp/1.json $line