From 97e9c4c3fd7650c2b0c1cc89a6758470fdcd7551 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 25 Apr 2023 14:41:51 -0400 Subject: [PATCH] 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 --- scripts/binutils-gdb/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1