reference/filesystem/functions/glob.xml
850ac483c876e767048222f9133e2498145f9f4a
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xml:id="function.glob" xmlns="http://docbook.org/ns/docbook">
3
+
<refentry xml:id="function.glob" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
4
4
<refnamediv>
5
5
<refname>glob</refname>
6
6
<refpurpose>Find pathnames matching a pattern</refpurpose>
...
...
@@ -66,56 +66,9 @@
66
66
<listitem>
67
67
<para>
68
68
Valid flags:
69
-
<itemizedlist>
70
-
<listitem>
71
-
<simpara>
72
-
<constant>GLOB_MARK</constant> - Adds a slash (a backslash on Windows) to each directory returned
73
-
</simpara>
74
-
</listitem>
75
-
<listitem>
76
-
<simpara>
77
-
<constant>GLOB_NOSORT</constant> - Return files as they appear in the
78
-
directory (no sorting). When this flag is not used, the pathnames are
79
-
sorted alphabetically
80
-
</simpara>
81
-
</listitem>
82
-
<listitem>
83
-
<simpara>
84
-
<constant>GLOB_NOCHECK</constant> - Return the search pattern if no
85
-
files matching it were found
86
-
</simpara>
87
-
</listitem>
88
-
<listitem>
89
-
<simpara>
90
-
<constant>GLOB_NOESCAPE</constant> - Backslashes do not quote
91
-
metacharacters
92
-
</simpara>
93
-
</listitem>
94
-
<listitem>
95
-
<simpara>
96
-
<constant>GLOB_BRACE</constant> - Expands {a,b,c} to match 'a', 'b',
97
-
or 'c'
98
-
</simpara>
99
-
</listitem>
100
-
<listitem>
101
-
<simpara>
102
-
<constant>GLOB_ONLYDIR</constant> - Return only directory entries
103
-
which match the pattern
104
-
</simpara>
105
-
</listitem>
106
-
<listitem>
107
-
<simpara>
108
-
<constant>GLOB_ERR</constant> - Stop on read errors (like unreadable
109
-
directories), by default errors are ignored.
110
-
</simpara>
111
-
</listitem>
112
-
</itemizedlist>
113
-
<note>
114
-
<simpara>
115
-
The <constant>GLOB_BRACE</constant> flag is not available on some non GNU
116
-
systems, like Solaris or Alpine Linux.
117
-
</simpara>
118
-
</note>
69
+
<variablelist>
70
+
<xi:include set-xml-id="" xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('constant.glob-constant-variablelist')/*)"><xi:fallback/></xi:include>
71
+
</variablelist>
119
72
</para>
120
73
</listitem>
121
74
</varlistentry>
122
75