From: Simon Marchi Date: Tue, 25 Apr 2023 18:41:51 +0000 (-0400) Subject: jjb: binutils-gdb: use `-r` with `read` X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=97e9c4c3fd7650c2b0c1cc89a6758470fdcd7551;p=lttng-ci.git jjb: binutils-gdb: use `-r` with `read` 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 --- diff --git a/scripts/binutils-gdb/build.sh b/scripts/binutils-gdb/build.sh index c7d42c2..29027cf 100755 --- a/scripts/binutils-gdb/build.sh +++ b/scripts/binutils-gdb/build.sh @@ -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