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, Mar 1, 4:19 PM
Unknown Object (File)
Wed, Feb 25, 1:47 PM
Unknown Object (File)
Feb 8 2026, 8:43 AM
Unknown Object (File)
Feb 7 2026, 8:07 PM
Unknown Object (File)
Jan 31 2026, 1:14 PM
Unknown Object (File)
Jan 29 2026, 6:37 AM
Unknown Object (File)
Dec 31 2025, 1:54 PM
Unknown Object (File)
Dec 12 2025, 10:51 PM
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.