jjb: binutils-gdb: use `-r` with `read`
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 25 Apr 2023 18:41:51 +0000 (14:41 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 25 Apr 2023 20:12:03 +0000 (16:12 -0400)
Because shellcheck said so:

    In scripts/binutils-gdb/build.sh line 952:
    while read line; do
          ^--^ SC2162 (info): read without -r will mangle backslashes.

Change-Id: I26584cdb30c124de3341e476930df1f4fd474a71

scripts/binutils-gdb/build.sh

index c7d42c291e6898492c84347df7c7fd0abce3d7ad..29027cf842117bb2bb8d5c149569c869aa45f117 100755 (executable)
@@ -950,7 +950,7 @@ grep --extended-regexp --regexp="^(FAIL|XPASS|UNRESOLVED|DUPLICATE|ERROR):" "${W
 # For informational purposes: check if some known failure lines did not appear
 # in the gdb.sum.
 echo "Known failures that don't appear in gdb.sum:"
-while read line; do
+while read -r line; do
     if ! grep --silent --fixed-strings "$line" "${WORKSPACE}/results/gdb.sum"; then
         echo "$line"
     fi
This page took 0.026732 seconds and 4 git commands to generate.