Page MenuHomeFreeBSD

test-includes: improve portability
ClosedPublic

Authored by brooks on Mar 17 2022, 11:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 14, 8:24 AM
Unknown Object (File)
Mar 12 2025, 2:35 PM
Unknown Object (File)
Mar 5 2025, 12:14 PM
Unknown Object (File)
Mar 5 2025, 10:22 AM
Unknown Object (File)
Mar 5 2025, 9:46 AM
Unknown Object (File)
Mar 2 2025, 6:47 AM
Unknown Object (File)
Feb 28 2025, 4:16 AM
Unknown Object (File)
Feb 27 2025, 10:17 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44818
Build 41706: arc lint + arc unit

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.