/*[nonstandard]*/ /* Test whether an explicit period in a bracket expression matches a leading slash in FNM_PERIOD mode. */ #include "suite.h" int main(void) { flags = FNM_PERIOD; match("[.abc]", "a"); match("[.abc]", "b"); match("[.abc]", "c"); // POSIX-1.2024 2.14.3 2. "It is unspecified whether an explicit // in a bracket expression matching list, such as "[.abc]", // can match a leading in a filename." // However almost all systems reject it in practice. reject("[.abc]", "."); return 0; }