devtools: fix escaped space in grep pattern
PATCH 1/1 devtools: fix escaped space in grep pattern
Since grep 3.8, a warning is printed if a space is escaped in a pattern:
grep: warning: stray \ before white space
There was an occurence of such extra backslash in check-git-log.sh.
Fixes d448efa259e9 ("devtools: export dictionary for commit title check")
Signed-off-by Thomas Monjalon <[email protected]>
--- devtools/check-git-log.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
devtools/check-git-log.sh +1 -1
@@ -120,7 +120,7 @@ words="$selfdir/words-case.txt" for word in $(cat $words); do bad=$(echo "$headlines" | grep -iw $word | grep -vw $word) if [ "$word" = "Tx" ]; then - bad=$(echo $bad | grep -v 'OCTEON\ TX') + bad=$(echo $bad | grep -v 'OCTEON TX') fi for bad_line in $bad; do bad_word=$(echo $bad_line | cut -d":" -f2 | grep -iwo $word)
Signature · 1 line
2.39.0
Quoted 10 lines · Thomas Monjalon
Since grep 3.8, a warning is printed if a space is escaped in a pattern:
grep: warning: stray \ before white spaceThere was an occurence of such extra backslash in
check-git-log.sh.Fixes d448efa259e9 ("devtools: export dictionary for commit title check")Signed-off-by Thomas Monjalon <[email protected]>---
thanks, it was annoying.
Acked-by Tyler Retzlaff <[email protected]>
Thomas Monjalon
Applied10/01/2023 22:52, Tyler Retzlaff:
Quoted 9 lines · Thomas Monjalon
Quoted 8 lines
Since grep 3.8, a warning is printed if a space is escaped in a pattern:
grep: warning: stray \ before white spaceThere was an occurence of such extra backslash in
check-git-log.sh.Fixes d448efa259e9 ("devtools: export dictionary for commit title check")
Quoted 6 lines
Quoted 2 lines
Signed-off-by Thomas Monjalon <[email protected]>---
thanks, it was annoying.
Acked-by Tyler Retzlaff <[email protected]>
Applied