From: Mattias EngdegÄrd Date: Sat, 19 Nov 2022 11:29:46 +0000 (+0100) Subject: * Makefile.in: Escape literal asterisks in regexps X-Git-Tag: emacs-29.0.90~1616^2~31 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=87dd44e982048db8170095e8a76204d77297ea29;p=emacs.git * Makefile.in: Escape literal asterisks in regexps Discovered by Po Lu. --- diff --git a/Makefile.in b/Makefile.in index 45b4a59e3db..66fa688feb2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -410,7 +410,7 @@ advice-on-failure: @echo >&2 '***' @cat Makefile | \ sed -n '/^# ADVICE-ON-FAILURE-BEGIN:${make-target}/,$${p;/^# ADVICE-ON-FAILURE-END:${make-target}/q};' | \ - sed 's/^# /*** /' | grep -v '^*** ADVICE-ON-FAILURE-' >&2 + sed 's/^# /*** /' | grep -v '^\*\*\* ADVICE-ON-FAILURE-' >&2 @echo >&2 '***' @exit ${exit-status} @@ -424,7 +424,7 @@ sanity-check: echo >&2 '***'; \ cat Makefile | \ sed -n '/^# ADVICE-ON-FAILURE-BEGIN:${make-target}/,$${p;/^# ADVICE-ON-FAILURE-END:${make-target}/q};' | \ - sed 's/^# /*** /' | grep -v '^*** ADVICE-ON-FAILURE-' >&2; \ + sed 's/^# /*** /' | grep -v '^\*\*\* ADVICE-ON-FAILURE-' >&2; \ echo >&2 '***'; \ exit 1