GLOB_BRACE的可移植性? [英] GLOB_BRACE portability?
问题描述
在这个问题中,我意识到glob()的GLOB_BRACE
选项,在搜索文件时允许使用一组有限的正则表达式.
In this question, I was made aware of glob()'s GLOB_BRACE
option that allows for a limited set of regular expressions when searching for files.
这看起来就像我需要的,但是根据手册,GLOB_BRACE
在某些非GNU操作系统上不可用".其中似乎有Solaris.
This looks just like what I need, but according to the manual, GLOB_BRACE
is "not available on some Non-GNU Operating systems." Among those seems to be Solaris.
我正在构建一个应尽可能具有可移植性的应用程序,因此我需要尽早检查可能的问题.
I am building an application that is supposed to be as portable as possible, so I need to check out possible problems as early as possible.
除Solaris之外,有人不了解其他不支持GLOB_BRACE
的平台吗?例如,Mac OS> = X怎么样?它建立在Unix之上.是否每个Unix都自动按照手册中的定义成为"GNU"平台?
Does somebody know of other platforms apart from Solaris where GLOB_BRACE
is not supported? How about Mac OS >= X for example? It's built on top of a Unix. Is every Unix automatically a "GNU" platform as defined in the manual?
推荐答案
检查相关的 查看全文