Portability GLOB_BRACE?

In this question, I was informed about the glob () GLOB_BRACE , which allows you to use a limited set of regular expressions when searching for files.

This is similar to what I need, but according to manual GLOB_BRACE "Not available for some Non-GNU Operating Systems." Among them, it seems, Solaris.

I am creating an application that should be as portable as possible, so I need to check for possible problems as early as possible.

Does anyone know of platforms other than Solaris where GLOB_BRACE not supported? What about Mac OS> = X for example? It is built on top of Unix. Is each Unix automatically a β€œGNU” platform, as defined in the manual?

+1
unix php gnu glob
source share
1 answer

Checking the corresponding glob(3) man page for the * nix option will tell you if it GLOB_BRACE .

+1
source share

All Articles