Page MenuHomeFreeBSD

test-includes: improve portability
ClosedPublic

Authored by brooks on Mar 17 2022, 11:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 9, 4:22 PM
Unknown Object (File)
Sat, Aug 8, 7:51 PM
Unknown Object (File)
Fri, Aug 7, 8:57 PM
Unknown Object (File)
Fri, Aug 7, 6:11 PM
Unknown Object (File)
Wed, Jul 29, 12:35 AM
Unknown Object (File)
Wed, Jul 22, 9:27 PM
Unknown Object (File)
Tue, Jul 21, 4:28 PM
Unknown Object (File)
Tue, Jul 21, 12:13 AM
Subscribers
None

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks created this revision.
tools/build/test-includes/Makefile
19

Looks good, or it could be [a-zA-z]*.h too...

This revision is now accepted and ready to land.Mar 18 2022, 3:53 AM
This revision was automatically updated to reflect the committed changes.