Date: Tue, 22 Mar 2022 20:23:33 GMT From: Brooks Davis <brooks@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 44b36b80f578 - main - test-includes: improve portability Message-ID: <202203222023.22MKNXZZ021835@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=44b36b80f57830bc9ccd78e27b12213c6a16626d commit 44b36b80f57830bc9ccd78e27b12213c6a16626d Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2022-03-22 20:23:22 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2022-03-22 20:23:22 +0000 test-includes: improve portability FreeBSD's shell permits [^bar] to match characters not in [bar] like common regular expressions. This is non-portable and '!' should be used in place of '^' for portability. Reported by: Nathaniel Wesley Filardo Issue: https://github.com/CTSRD-CHERI/cheribsd/issues/1321 Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34597 --- tools/build/test-includes/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/test-includes/Makefile b/tools/build/test-includes/Makefile index 707ab6f4ca47..174c4341331c 100644 --- a/tools/build/test-includes/Makefile +++ b/tools/build/test-includes/Makefile @@ -16,7 +16,7 @@ LIB= test-includes INTERNALLIB= This is a compile-only test MAN= -HDRS!= (cd ${SRCTOP}/sys; ls sys/[^_]*.h | sort ; ls net*/[^_]*.h | sort) +HDRS!= (cd ${SRCTOP}/sys; ls sys/[!_]*.h | sort ; ls net*/[!_]*.h | sort) NO_PIC= yes # Some files have to be clean for extra defines too...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203222023.22MKNXZZ021835>