]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: fix escaping in "function" file, for json output
authorAlain Spineux <alain@baculasystems.com>
Wed, 20 Apr 2022 17:52:00 +0000 (19:52 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:58 +0000 (13:56 +0200)
- "read" handle the escape characters by default, use '-r' to disable
  the handling of escape characters.

regress/scripts/functions

index 9377b4f7eedcad1d0a6a24c423765dda7f9d14e8..b406dc126597cb6c23f6cc447dbb7b698195643a 100755 (executable)
@@ -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 <<EOF > $tmp/1.json
 $line