From: Alejandro Colomar Date: Tue, 10 May 2022 17:33:15 +0000 (+0200) Subject: grepc: Use -r option to read(1) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=842c2aa190ad6dc49d4278f40e5f9787b8c662e1;p=thirdparty%2Fman-pages.git grepc: Use -r option to read(1) Let's fall on the safe side. Reported-by: наб Signed-off-by: Alejandro Colomar --- diff --git a/bin/grepc b/bin/grepc index 7c2e8caf9..b5ce94a41 100755 --- a/bin/grepc +++ b/bin/grepc @@ -156,7 +156,7 @@ grepc_type_typedef_underlying_struct_union_enum() xargs grep -hP "^\s*typedef\s+(struct|union|enum)\s+.*\b$1;" <"$files" \ | sed -E -e 's/^\s*typedef\s+//' -e "s/\s*\**\b$1;.*//" \ | sed -E -e 's/^struct\s+//' -e 's/^union\s+//' -e 's/^enum\s+//' \ - | while read t; do + | while read -r t; do test "$1" != "$t" \ && grepc_type_struct_union_enum "$t"; done;