GLOB_BRACE的可移植性? [英] GLOB_BRACE portability?

查看:145
本文介绍了GLOB_BRACE的可移植性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题中,我意识到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?

推荐答案

检查相关的 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆