xref: /netbsd-src/external/bsd/tre/dist/tests/agrep/records.ok (revision fdd524d4ccd2bb0c6f67401e938dabf773eb0372)
1#### TEST: agrep  -d \s+ a records.in
2 match a starts at a character.  Similarly, at a character. characters are
3alphanumerics (as locale) and
4character. that characters match; cannot as characters that a (a character) and an (an extra character) a character, that a and an added a larger than
5and regular and after last a default default a a can
6any regular that match
7example, mail messages as a
8Mailbox format
9Exit status 0.
10#### TEST: agrep  -d \s+ a < records.in
11 match a starts at a character.  Similarly, at a character. characters are
12alphanumerics (as locale) and
13character. that characters match; cannot as characters that a (a character) and an (an extra character) a character, that a and an added a larger than
14and regular and after last a default default a a can
15any regular that match
16example, mail messages as a
17Mailbox format
18Exit status 0.
19#### TEST: agrep -c -d \s+ a records.in
2064
21
22Exit status 0.
23#### TEST: agrep -c -d \s+ a < records.in
2464
25
26Exit status 0.
27#### TEST: agrep -H -d \s+ a records.in
28records.in: matchrecords.in: arecords.in: startsrecords.in: atrecords.in: arecords.in: character.records.in:  Similarly,records.in: atrecords.in: arecords.in: character.records.in: charactersrecords.in: arerecords.in:
29alphanumericsrecords.in: (asrecords.in: locale)records.in: andrecords.in:
30character.records.in: thatrecords.in: charactersrecords.in: match;records.in: cannotrecords.in: asrecords.in: charactersrecords.in: thatrecords.in: arecords.in: (arecords.in: character)records.in: andrecords.in: anrecords.in: (anrecords.in: extrarecords.in: character)records.in: arecords.in: character,records.in: thatrecords.in: arecords.in: andrecords.in: anrecords.in: addedrecords.in: arecords.in: largerrecords.in: thanrecords.in:
31andrecords.in: regularrecords.in: andrecords.in: afterrecords.in: lastrecords.in: arecords.in: defaultrecords.in: defaultrecords.in: arecords.in: arecords.in: canrecords.in:
32anyrecords.in: regularrecords.in: thatrecords.in: matchrecords.in:
33example,records.in: mailrecords.in: messagesrecords.in: asrecords.in: arecords.in:
34Mailboxrecords.in: format
35Exit status 0.
36#### TEST: agrep -H -d \s+ a < records.in
37(standard input): match(standard input): a(standard input): starts(standard input): at(standard input): a(standard input): character.(standard input):  Similarly,(standard input): at(standard input): a(standard input): character.(standard input): characters(standard input): are(standard input):
38alphanumerics(standard input): (as(standard input): locale)(standard input): and(standard input):
39character.(standard input): that(standard input): characters(standard input): match;(standard input): cannot(standard input): as(standard input): characters(standard input): that(standard input): a(standard input): (a(standard input): character)(standard input): and(standard input): an(standard input): (an(standard input): extra(standard input): character)(standard input): a(standard input): character,(standard input): that(standard input): a(standard input): and(standard input): an(standard input): added(standard input): a(standard input): larger(standard input): than(standard input):
40and(standard input): regular(standard input): and(standard input): after(standard input): last(standard input): a(standard input): default(standard input): default(standard input): a(standard input): a(standard input): can(standard input):
41any(standard input): regular(standard input): that(standard input): match(standard input):
42example,(standard input): mail(standard input): messages(standard input): as(standard input): a(standard input):
43Mailbox(standard input): format
44Exit status 0.
45#### TEST: agrep -l -d \s+ a records.in
46records.in
47
48Exit status 0.
49#### TEST: agrep -l -d \s+ a < records.in
50(standard input)
51
52Exit status 0.
53#### TEST: agrep -n -d \s+ a records.in
544: match12: a16: starts17: at27: a30: character.31:  Similarly,37: at47: a50: character.52: characters53: are54:
55alphanumerics55: (as60: locale)61: and64:
56character.66: that70: characters74: match;76: cannot79: as85: characters89: that90: a92: (a94: character)95: and96: an98: (an99: extra100: character)103: a105: character,112: that114: a116: and117: an119: added126: a132: larger133: than141:
57and153: regular166: and167: after169: last175: a178: default187: default188: a191: a194: can196:
58any197: regular199: that202: match207:
59example,213: mail214: messages215: as218: a219:
60Mailbox220: format
61Exit status 0.
62#### TEST: agrep -n -d \s+ a < records.in
634: match12: a16: starts17: at27: a30: character.31:  Similarly,37: at47: a50: character.52: characters53: are54:
64alphanumerics55: (as60: locale)61: and64:
65character.66: that70: characters74: match;76: cannot79: as85: characters89: that90: a92: (a94: character)95: and96: an98: (an99: extra100: character)103: a105: character,112: that114: a116: and117: an119: added126: a132: larger133: than141:
66and153: regular166: and167: after169: last175: a178: default187: default188: a191: a194: can196:
67any197: regular199: that202: match207:
68example,213: mail214: messages215: as218: a219:
69Mailbox220: format
70Exit status 0.
71#### TEST: agrep -s -d \s+ a records.in
720: match0: a0: starts0: at0: a0: character.0:  Similarly,0: at0: a0: character.0: characters0: are0:
73alphanumerics0: (as0: locale)0: and0:
74character.0: that0: characters0: match;0: cannot0: as0: characters0: that0: a0: (a0: character)0: and0: an0: (an0: extra0: character)0: a0: character,0: that0: a0: and0: an0: added0: a0: larger0: than0:
75and0: regular0: and0: after0: last0: a0: default0: default0: a0: a0: can0:
76any0: regular0: that0: match0:
77example,0: mail0: messages0: as0: a0:
78Mailbox0: format
79Exit status 0.
80#### TEST: agrep -s -d \s+ a < records.in
810: match0: a0: starts0: at0: a0: character.0:  Similarly,0: at0: a0: character.0: characters0: are0:
82alphanumerics0: (as0: locale)0: and0:
83character.0: that0: characters0: match;0: cannot0: as0: characters0: that0: a0: (a0: character)0: and0: an0: (an0: extra0: character)0: a0: character,0: that0: a0: and0: an0: added0: a0: larger0: than0:
84and0: regular0: and0: after0: last0: a0: default0: default0: a0: a0: can0:
85any0: regular0: that0: match0:
86example,0: mail0: messages0: as0: a0:
87Mailbox0: format
88Exit status 0.
89#### TEST: agrep -M -d \s+ a records.in
90match a
91starts at a character.  Similarly, at a
92character.  characters are
93alphanumerics (as locale) and character.  that characters match; cannot as characters that a (a
94character) and an (an extra character) a character, that a
95and an added a
96larger than and regular and after last
97a default default a a can any regular that match example, mail messages as a
98Mailbox format
99Exit status 0.
100#### TEST: agrep -M -d \s+ a < records.in
101match a
102starts at a character.  Similarly, at a
103character.  characters are
104alphanumerics (as locale) and character.  that characters match; cannot as characters that a (a
105character) and an (an extra character) a character, that a
106and an added a
107larger than and regular and after last
108a default default a a can any regular that match example, mail messages as a
109Mailbox format
110Exit status 0.
111#### TEST: agrep --show-position -d \s+ a records.in
1121-2: match0-1: a2-3: starts0-1: at0-1: a2-3: character.5-6:  Similarly,0-1: at0-1: a2-3: character.2-3: characters0-1: are0-1:
113alphanumerics1-2: (as3-4: locale)0-1: and2-3:
114character.2-3: that2-3: characters1-2: match;1-2: cannot0-1: as2-3: characters2-3: that0-1: a1-2: (a2-3: character)0-1: and0-1: an1-2: (an4-5: extra2-3: character)0-1: a2-3: character,2-3: that0-1: a0-1: and0-1: an0-1: added0-1: a1-2: larger2-3: than0-1:
115and5-6: regular0-1: and0-1: after1-2: last0-1: a3-4: default3-4: default0-1: a0-1: a1-2: can0-1:
116any5-6: regular2-3: that1-2: match2-3:
117example,1-2: mail4-5: messages0-1: as0-1: a1-2:
118Mailbox4-5: format
119Exit status 0.
120#### TEST: agrep --show-position -d \s+ a < records.in
1211-2: match0-1: a2-3: starts0-1: at0-1: a2-3: character.5-6:  Similarly,0-1: at0-1: a2-3: character.2-3: characters0-1: are0-1:
122alphanumerics1-2: (as3-4: locale)0-1: and2-3:
123character.2-3: that2-3: characters1-2: match;1-2: cannot0-1: as2-3: characters2-3: that0-1: a1-2: (a2-3: character)0-1: and0-1: an1-2: (an4-5: extra2-3: character)0-1: a2-3: character,2-3: that0-1: a0-1: and0-1: an0-1: added0-1: a1-2: larger2-3: than0-1:
124and5-6: regular0-1: and0-1: after1-2: last0-1: a3-4: default3-4: default0-1: a0-1: a1-2: can0-1:
125any5-6: regular2-3: that1-2: match2-3:
126example,1-2: mail4-5: messages0-1: as0-1: a1-2:
127Mailbox4-5: format
128Exit status 0.
129#### TEST: agrep --color -d \s+ a records.in
130 match a starts at a character.  Similarly, at a character. characters are
131alphanumerics (as locale) and
132character. that characters match; cannot as characters that a (a character) and an (an extra character) a character, that a and an added a larger than
133and regular and after last a default default a a can
134any regular that match
135example, mail messages as a
136Mailbox format
137Exit status 0.
138#### TEST: agrep --color -d \s+ a < records.in
139 match a starts at a character.  Similarly, at a character. characters are
140alphanumerics (as locale) and
141character. that characters match; cannot as characters that a (a character) and an (an extra character) a character, that a and an added a larger than
142and regular and after last a default default a a can
143any regular that match
144example, mail messages as a
145Mailbox format
146Exit status 0.
147#### TEST: agrep -H -n -s --color --show-position -d \s+ a records.in
148records.in:4:0:1-2: matchrecords.in:12:0:0-1: arecords.in:16:0:2-3: startsrecords.in:17:0:0-1: atrecords.in:27:0:0-1: arecords.in:30:0:2-3: character.records.in:31:0:5-6:  Similarly,records.in:37:0:0-1: atrecords.in:47:0:0-1: arecords.in:50:0:2-3: character.records.in:52:0:2-3: charactersrecords.in:53:0:0-1: arerecords.in:54:0:0-1:
149alphanumericsrecords.in:55:0:1-2: (asrecords.in:60:0:3-4: locale)records.in:61:0:0-1: andrecords.in:64:0:2-3:
150character.records.in:66:0:2-3: thatrecords.in:70:0:2-3: charactersrecords.in:74:0:1-2: match;records.in:76:0:1-2: cannotrecords.in:79:0:0-1: asrecords.in:85:0:2-3: charactersrecords.in:89:0:2-3: thatrecords.in:90:0:0-1: arecords.in:92:0:1-2: (arecords.in:94:0:2-3: character)records.in:95:0:0-1: andrecords.in:96:0:0-1: anrecords.in:98:0:1-2: (anrecords.in:99:0:4-5: extrarecords.in:100:0:2-3: character)records.in:103:0:0-1: arecords.in:105:0:2-3: character,records.in:112:0:2-3: thatrecords.in:114:0:0-1: arecords.in:116:0:0-1: andrecords.in:117:0:0-1: anrecords.in:119:0:0-1: addedrecords.in:126:0:0-1: arecords.in:132:0:1-2: largerrecords.in:133:0:2-3: thanrecords.in:141:0:0-1:
151andrecords.in:153:0:5-6: regularrecords.in:166:0:0-1: andrecords.in:167:0:0-1: afterrecords.in:169:0:1-2: lastrecords.in:175:0:0-1: arecords.in:178:0:3-4: defaultrecords.in:187:0:3-4: defaultrecords.in:188:0:0-1: arecords.in:191:0:0-1: arecords.in:194:0:1-2: canrecords.in:196:0:0-1:
152anyrecords.in:197:0:5-6: regularrecords.in:199:0:2-3: thatrecords.in:202:0:1-2: matchrecords.in:207:0:2-3:
153example,records.in:213:0:1-2: mailrecords.in:214:0:4-5: messagesrecords.in:215:0:0-1: asrecords.in:218:0:0-1: arecords.in:219:0:1-2:
154Mailboxrecords.in:220:0:4-5: format
155Exit status 0.
156#### TEST: agrep -H -n -s --color --show-position -d \s+ a < records.in
157(standard input):4:0:1-2: match(standard input):12:0:0-1: a(standard input):16:0:2-3: starts(standard input):17:0:0-1: at(standard input):27:0:0-1: a(standard input):30:0:2-3: character.(standard input):31:0:5-6:  Similarly,(standard input):37:0:0-1: at(standard input):47:0:0-1: a(standard input):50:0:2-3: character.(standard input):52:0:2-3: characters(standard input):53:0:0-1: are(standard input):54:0:0-1:
158alphanumerics(standard input):55:0:1-2: (as(standard input):60:0:3-4: locale)(standard input):61:0:0-1: and(standard input):64:0:2-3:
159character.(standard input):66:0:2-3: that(standard input):70:0:2-3: characters(standard input):74:0:1-2: match;(standard input):76:0:1-2: cannot(standard input):79:0:0-1: as(standard input):85:0:2-3: characters(standard input):89:0:2-3: that(standard input):90:0:0-1: a(standard input):92:0:1-2: (a(standard input):94:0:2-3: character)(standard input):95:0:0-1: and(standard input):96:0:0-1: an(standard input):98:0:1-2: (an(standard input):99:0:4-5: extra(standard input):100:0:2-3: character)(standard input):103:0:0-1: a(standard input):105:0:2-3: character,(standard input):112:0:2-3: that(standard input):114:0:0-1: a(standard input):116:0:0-1: and(standard input):117:0:0-1: an(standard input):119:0:0-1: added(standard input):126:0:0-1: a(standard input):132:0:1-2: larger(standard input):133:0:2-3: than(standard input):141:0:0-1:
160and(standard input):153:0:5-6: regular(standard input):166:0:0-1: and(standard input):167:0:0-1: after(standard input):169:0:1-2: last(standard input):175:0:0-1: a(standard input):178:0:3-4: default(standard input):187:0:3-4: default(standard input):188:0:0-1: a(standard input):191:0:0-1: a(standard input):194:0:1-2: can(standard input):196:0:0-1:
161any(standard input):197:0:5-6: regular(standard input):199:0:2-3: that(standard input):202:0:1-2: match(standard input):207:0:2-3:
162example,(standard input):213:0:1-2: mail(standard input):214:0:4-5: messages(standard input):215:0:0-1: as(standard input):218:0:0-1: a(standard input):219:0:1-2:
163Mailbox(standard input):220:0:4-5: format
164Exit status 0.
165#### TEST: agrep  -d \s+ [A-Z] records.in
166Force PATTERN  A  Similarly,  Word-constituent  Note
167
168Set NUM.  Note  Thus,
169
170Set PATTERN.  The  The  PATTERN  For "^From
171Mailbox
172Exit status 0.
173#### TEST: agrep  -d \s+ [A-Z] < records.in
174Force PATTERN  A  Similarly,  Word-constituent  Note
175
176Set NUM.  Note  Thus,
177
178Set PATTERN.  The  The  PATTERN  For "^From
179Mailbox
180Exit status 0.
181#### TEST: agrep -c -d \s+ [A-Z] records.in
18218
183
184Exit status 0.
185#### TEST: agrep -c -d \s+ [A-Z] < records.in
18618
187
188Exit status 0.
189#### TEST: agrep -H -d \s+ [A-Z] records.in
190records.in:Forcerecords.in: PATTERNrecords.in:  Arecords.in:  Similarly,records.in:  Word-constituentrecords.in:  Noterecords.in:
191
192Setrecords.in: NUM.records.in:  Noterecords.in:  Thus,records.in:
193
194Setrecords.in: PATTERN.records.in:  Therecords.in:  Therecords.in:  PATTERNrecords.in:  Forrecords.in: "^Fromrecords.in:
195Mailbox
196Exit status 0.
197#### TEST: agrep -H -d \s+ [A-Z] < records.in
198(standard input):Force(standard input): PATTERN(standard input):  A(standard input):  Similarly,(standard input):  Word-constituent(standard input):  Note(standard input):
199
200Set(standard input): NUM.(standard input):  Note(standard input):  Thus,(standard input):
201
202Set(standard input): PATTERN.(standard input):  The(standard input):  The(standard input):  PATTERN(standard input):  For(standard input): "^From(standard input):
203Mailbox
204Exit status 0.
205#### TEST: agrep -l -d \s+ [A-Z] records.in
206records.in
207
208Exit status 0.
209#### TEST: agrep -l -d \s+ [A-Z] < records.in
210(standard input)
211
212Exit status 0.
213#### TEST: agrep -n -d \s+ [A-Z] records.in
2141:Force2: PATTERN8:  A31:  Similarly,51:  Word-constituent65:  Note81:
215
216Set87: NUM.88:  Note121:  Thus,149:
217
218Set156: PATTERN.157:  The177:  The193:  PATTERN206:  For210: "^From219:
219Mailbox
220Exit status 0.
221#### TEST: agrep -n -d \s+ [A-Z] < records.in
2221:Force2: PATTERN8:  A31:  Similarly,51:  Word-constituent65:  Note81:
223
224Set87: NUM.88:  Note121:  Thus,149:
225
226Set156: PATTERN.157:  The177:  The193:  PATTERN206:  For210: "^From219:
227Mailbox
228Exit status 0.
229#### TEST: agrep -s -d \s+ [A-Z] records.in
2300:Force0: PATTERN0:  A0:  Similarly,0:  Word-constituent0:  Note0:
231
232Set0: NUM.0:  Note0:  Thus,0:
233
234Set0: PATTERN.0:  The0:  The0:  PATTERN0:  For0: "^From0:
235Mailbox
236Exit status 0.
237#### TEST: agrep -s -d \s+ [A-Z] < records.in
2380:Force0: PATTERN0:  A0:  Similarly,0:  Word-constituent0:  Note0:
239
240Set0: NUM.0:  Note0:  Thus,0:
241
242Set0: PATTERN.0:  The0:  The0:  PATTERN0:  For0: "^From0:
243Mailbox
244Exit status 0.
245#### TEST: agrep -M -d \s+ [A-Z] records.in
246Force PATTERN A Similarly, Word-constituent Note Set NUM.  Note Thus, Set PATTERN.  The The PATTERN For
247"^From Mailbox
248Exit status 0.
249#### TEST: agrep -M -d \s+ [A-Z] < records.in
250Force PATTERN A Similarly, Word-constituent Note Set NUM.  Note Thus, Set PATTERN.  The The PATTERN For
251"^From Mailbox
252Exit status 0.
253#### TEST: agrep --show-position -d \s+ [A-Z] records.in
2540-1:Force0-1: PATTERN0-1:  A0-1:  Similarly,0-1:  Word-constituent0-1:  Note0-1:
255
256Set0-1: NUM.0-1:  Note0-1:  Thus,0-1:
257
258Set0-1: PATTERN.0-1:  The0-1:  The0-1:  PATTERN0-1:  For2-3: "^From0-1:
259Mailbox
260Exit status 0.
261#### TEST: agrep --show-position -d \s+ [A-Z] < records.in
2620-1:Force0-1: PATTERN0-1:  A0-1:  Similarly,0-1:  Word-constituent0-1:  Note0-1:
263
264Set0-1: NUM.0-1:  Note0-1:  Thus,0-1:
265
266Set0-1: PATTERN.0-1:  The0-1:  The0-1:  PATTERN0-1:  For2-3: "^From0-1:
267Mailbox
268Exit status 0.
269#### TEST: agrep --color -d \s+ [A-Z] records.in
270Force PATTERN  A  Similarly,  Word-constituent  Note
271
272Set NUM.  Note  Thus,
273
274Set PATTERN.  The  The  PATTERN  For "^From
275Mailbox
276Exit status 0.
277#### TEST: agrep --color -d \s+ [A-Z] < records.in
278Force PATTERN  A  Similarly,  Word-constituent  Note
279
280Set NUM.  Note  Thus,
281
282Set PATTERN.  The  The  PATTERN  For "^From
283Mailbox
284Exit status 0.
285#### TEST: agrep -H -n -s --color --show-position -d \s+ [A-Z] records.in
286records.in:1:0:0-1:Forcerecords.in:2:0:0-1: PATTERNrecords.in:8:0:0-1:  Arecords.in:31:0:0-1:  Similarly,records.in:51:0:0-1:  Word-constituentrecords.in:65:0:0-1:  Noterecords.in:81:0:0-1:
287
288Setrecords.in:87:0:0-1: NUM.records.in:88:0:0-1:  Noterecords.in:121:0:0-1:  Thus,records.in:149:0:0-1:
289
290Setrecords.in:156:0:0-1: PATTERN.records.in:157:0:0-1:  Therecords.in:177:0:0-1:  Therecords.in:193:0:0-1:  PATTERNrecords.in:206:0:0-1:  Forrecords.in:210:0:2-3: "^Fromrecords.in:219:0:0-1:
291Mailbox
292Exit status 0.
293#### TEST: agrep -H -n -s --color --show-position -d \s+ [A-Z] < records.in
294(standard input):1:0:0-1:Force(standard input):2:0:0-1: PATTERN(standard input):8:0:0-1:  A(standard input):31:0:0-1:  Similarly,(standard input):51:0:0-1:  Word-constituent(standard input):65:0:0-1:  Note(standard input):81:0:0-1:
295
296Set(standard input):87:0:0-1: NUM.(standard input):88:0:0-1:  Note(standard input):121:0:0-1:  Thus,(standard input):149:0:0-1:
297
298Set(standard input):156:0:0-1: PATTERN.(standard input):157:0:0-1:  The(standard input):177:0:0-1:  The(standard input):193:0:0-1:  PATTERN(standard input):206:0:0-1:  For(standard input):210:0:2-3: "^From(standard input):219:0:0-1:
299Mailbox
300Exit status 0.
301#### TEST: agrep  -d \.\s+ -M error records.in
302Note that the non-word constituent characters must
303surround the match; they cannot be counted as errors.
304
305
306Exit status 0.
307#### TEST: agrep  -d \.\s+ -M error < records.in
308Note that the non-word constituent characters must
309surround the match; they cannot be counted as errors.
310
311
312Exit status 0.
313#### TEST: agrep -c -d \.\s+ -M error records.in
3141
315
316Exit status 0.
317#### TEST: agrep -c -d \.\s+ -M error < records.in
3181
319
320Exit status 0.
321#### TEST: agrep -H -d \.\s+ -M error records.in
322records.in:Note that the non-word constituent characters must
323surround the match; they cannot be counted as errors.
324
325
326Exit status 0.
327#### TEST: agrep -H -d \.\s+ -M error < records.in
328(standard input):Note that the non-word constituent characters must
329surround the match; they cannot be counted as errors.
330
331
332Exit status 0.
333#### TEST: agrep -l -d \.\s+ -M error records.in
334records.in
335
336Exit status 0.
337#### TEST: agrep -l -d \.\s+ -M error < records.in
338(standard input)
339
340Exit status 0.
341#### TEST: agrep -n -d \.\s+ -M error records.in
3425:Note that the non-word constituent characters must
343surround the match; they cannot be counted as errors.
344
345
346Exit status 0.
347#### TEST: agrep -n -d \.\s+ -M error < records.in
3485:Note that the non-word constituent characters must
349surround the match; they cannot be counted as errors.
350
351
352Exit status 0.
353#### TEST: agrep -s -d \.\s+ -M error records.in
3540:Note that the non-word constituent characters must
355surround the match; they cannot be counted as errors.
356
357
358Exit status 0.
359#### TEST: agrep -s -d \.\s+ -M error < records.in
3600:Note that the non-word constituent characters must
361surround the match; they cannot be counted as errors.
362
363
364Exit status 0.
365#### TEST: agrep -M -d \.\s+ -M error records.in
366Note that the non-word constituent characters must
367surround the match; they cannot be counted as errors.
368
369
370Exit status 0.
371#### TEST: agrep -M -d \.\s+ -M error < records.in
372Note that the non-word constituent characters must
373surround the match; they cannot be counted as errors.
374
375
376Exit status 0.
377#### TEST: agrep --show-position -d \.\s+ -M error records.in
37897-102:Note that the non-word constituent characters must
379surround the match; they cannot be counted as errors.
380
381
382Exit status 0.
383#### TEST: agrep --show-position -d \.\s+ -M error < records.in
38497-102:Note that the non-word constituent characters must
385surround the match; they cannot be counted as errors.
386
387
388Exit status 0.
389#### TEST: agrep --color -d \.\s+ -M error records.in
390Note that the non-word constituent characters must
391surround the match; they cannot be counted as errors.
392
393
394Exit status 0.
395#### TEST: agrep --color -d \.\s+ -M error < records.in
396Note that the non-word constituent characters must
397surround the match; they cannot be counted as errors.
398
399
400Exit status 0.
401#### TEST: agrep -H -n -s --color --show-position -d \.\s+ -M error records.in
402records.in:5:0:97-102:Note that the non-word constituent characters must
403surround the match; they cannot be counted as errors.
404
405
406Exit status 0.
407#### TEST: agrep -H -n -s --color --show-position -d \.\s+ -M error < records.in
408(standard input):5:0:97-102:Note that the non-word constituent characters must
409surround the match; they cannot be counted as errors.
410
411
412Exit status 0.
413#### TEST: agrep  -d \.\s+ -M default records.in
414The default record delimiter
415is the regexp "\n", so by default a record is a line.
416Exit status 0.
417#### TEST: agrep  -d \.\s+ -M default < records.in
418The default record delimiter
419is the regexp "\n", so by default a record is a line.
420Exit status 0.
421#### TEST: agrep -c -d \.\s+ -M default records.in
4221
423
424Exit status 0.
425#### TEST: agrep -c -d \.\s+ -M default < records.in
4261
427
428Exit status 0.
429#### TEST: agrep -H -d \.\s+ -M default records.in
430records.in:The default record delimiter
431is the regexp "\n", so by default a record is a line.
432Exit status 0.
433#### TEST: agrep -H -d \.\s+ -M default < records.in
434(standard input):The default record delimiter
435is the regexp "\n", so by default a record is a line.
436Exit status 0.
437#### TEST: agrep -l -d \.\s+ -M default records.in
438records.in
439
440Exit status 0.
441#### TEST: agrep -l -d \.\s+ -M default < records.in
442(standard input)
443
444Exit status 0.
445#### TEST: agrep -n -d \.\s+ -M default records.in
44611:The default record delimiter
447is the regexp "\n", so by default a record is a line.
448Exit status 0.
449#### TEST: agrep -n -d \.\s+ -M default < records.in
45011:The default record delimiter
451is the regexp "\n", so by default a record is a line.
452Exit status 0.
453#### TEST: agrep -s -d \.\s+ -M default records.in
4540:The default record delimiter
455is the regexp "\n", so by default a record is a line.
456Exit status 0.
457#### TEST: agrep -s -d \.\s+ -M default < records.in
4580:The default record delimiter
459is the regexp "\n", so by default a record is a line.
460Exit status 0.
461#### TEST: agrep -M -d \.\s+ -M default records.in
462The default record delimiter
463is the regexp "\n", so by default a record is a line.
464Exit status 0.
465#### TEST: agrep -M -d \.\s+ -M default < records.in
466The default record delimiter
467is the regexp "\n", so by default a record is a line.
468Exit status 0.
469#### TEST: agrep --show-position -d \.\s+ -M default records.in
4704-11:The default record delimiter
471is the regexp "\n", so by default a record is a line.
472Exit status 0.
473#### TEST: agrep --show-position -d \.\s+ -M default < records.in
4744-11:The default record delimiter
475is the regexp "\n", so by default a record is a line.
476Exit status 0.
477#### TEST: agrep --color -d \.\s+ -M default records.in
478The default record delimiter
479is the regexp "\n", so by default a record is a line.
480Exit status 0.
481#### TEST: agrep --color -d \.\s+ -M default < records.in
482The default record delimiter
483is the regexp "\n", so by default a record is a line.
484Exit status 0.
485#### TEST: agrep -H -n -s --color --show-position -d \.\s+ -M default records.in
486records.in:11:0:4-11:The default record delimiter
487is the regexp "\n", so by default a record is a line.
488Exit status 0.
489#### TEST: agrep -H -n -s --color --show-position -d \.\s+ -M default < records.in
490(standard input):11:0:4-11:The default record delimiter
491is the regexp "\n", so by default a record is a line.
492Exit status 0.
493#### TEST: agrep  -d \n\n -M PATTERN records.in
494Force PATTERN to match only whole words.  A "whole word" is a
495substring which either starts at the beginning or the record or is
496preceded by a non-word constituent character.  Similarly, the
497substring must either end at the end of the record or be followed by a
498non-word constituent character.  Word-constituent characters are
499alphanumerics (as defined by the current locale) and the underscore
500character.  Note that the non-word constituent characters must
501surround the match; they cannot be counted as errors.
502
503Set the record delimiter regular expression to PATTERN.  The text
504between two delimiters, before the first delimiter, and after the last
505delimiter is considered to be a record.  The default record delimiter
506is the regexp "\n", so by default a record is a line.  PATTERN can be
507any regular expression that does not match the empty string.  For
508example, using -d "^From " defines mail messages as records in a
509Mailbox format file.
510 c
511Exit status 0.
512#### TEST: agrep  -d \n\n -M PATTERN < records.in
513Force PATTERN to match only whole words.  A "whole word" is a
514substring which either starts at the beginning or the record or is
515preceded by a non-word constituent character.  Similarly, the
516substring must either end at the end of the record or be followed by a
517non-word constituent character.  Word-constituent characters are
518alphanumerics (as defined by the current locale) and the underscore
519character.  Note that the non-word constituent characters must
520surround the match; they cannot be counted as errors.
521
522Set the record delimiter regular expression to PATTERN.  The text
523between two delimiters, before the first delimiter, and after the last
524delimiter is considered to be a record.  The default record delimiter
525is the regexp "\n", so by default a record is a line.  PATTERN can be
526any regular expression that does not match the empty string.  For
527example, using -d "^From " defines mail messages as records in a
528Mailbox format file.
529 c
530Exit status 0.
531#### TEST: agrep -c -d \n\n -M PATTERN records.in
5322
533
534Exit status 0.
535#### TEST: agrep -c -d \n\n -M PATTERN < records.in
5362
537
538Exit status 0.
539#### TEST: agrep -H -d \n\n -M PATTERN records.in
540records.in:Force PATTERN to match only whole words.  A "whole word" is a
541substring which either starts at the beginning or the record or is
542preceded by a non-word constituent character.  Similarly, the
543substring must either end at the end of the record or be followed by a
544non-word constituent character.  Word-constituent characters are
545alphanumerics (as defined by the current locale) and the underscore
546character.  Note that the non-word constituent characters must
547surround the match; they cannot be counted as errors.
548
549records.in:Set the record delimiter regular expression to PATTERN.  The text
550between two delimiters, before the first delimiter, and after the last
551delimiter is considered to be a record.  The default record delimiter
552is the regexp "\n", so by default a record is a line.  PATTERN can be
553any regular expression that does not match the empty string.  For
554example, using -d "^From " defines mail messages as records in a
555Mailbox format file.
556 c
557Exit status 0.
558#### TEST: agrep -H -d \n\n -M PATTERN < records.in
559(standard input):Force PATTERN to match only whole words.  A "whole word" is a
560substring which either starts at the beginning or the record or is
561preceded by a non-word constituent character.  Similarly, the
562substring must either end at the end of the record or be followed by a
563non-word constituent character.  Word-constituent characters are
564alphanumerics (as defined by the current locale) and the underscore
565character.  Note that the non-word constituent characters must
566surround the match; they cannot be counted as errors.
567
568(standard input):Set the record delimiter regular expression to PATTERN.  The text
569between two delimiters, before the first delimiter, and after the last
570delimiter is considered to be a record.  The default record delimiter
571is the regexp "\n", so by default a record is a line.  PATTERN can be
572any regular expression that does not match the empty string.  For
573example, using -d "^From " defines mail messages as records in a
574Mailbox format file.
575 c
576Exit status 0.
577#### TEST: agrep -l -d \n\n -M PATTERN records.in
578records.in
579
580Exit status 0.
581#### TEST: agrep -l -d \n\n -M PATTERN < records.in
582(standard input)
583
584Exit status 0.
585#### TEST: agrep -n -d \n\n -M PATTERN records.in
5861:Force PATTERN to match only whole words.  A "whole word" is a
587substring which either starts at the beginning or the record or is
588preceded by a non-word constituent character.  Similarly, the
589substring must either end at the end of the record or be followed by a
590non-word constituent character.  Word-constituent characters are
591alphanumerics (as defined by the current locale) and the underscore
592character.  Note that the non-word constituent characters must
593surround the match; they cannot be counted as errors.
594
5953:Set the record delimiter regular expression to PATTERN.  The text
596between two delimiters, before the first delimiter, and after the last
597delimiter is considered to be a record.  The default record delimiter
598is the regexp "\n", so by default a record is a line.  PATTERN can be
599any regular expression that does not match the empty string.  For
600example, using -d "^From " defines mail messages as records in a
601Mailbox format file.
602 c
603Exit status 0.
604#### TEST: agrep -n -d \n\n -M PATTERN < records.in
6051:Force PATTERN to match only whole words.  A "whole word" is a
606substring which either starts at the beginning or the record or is
607preceded by a non-word constituent character.  Similarly, the
608substring must either end at the end of the record or be followed by a
609non-word constituent character.  Word-constituent characters are
610alphanumerics (as defined by the current locale) and the underscore
611character.  Note that the non-word constituent characters must
612surround the match; they cannot be counted as errors.
613
6143:Set the record delimiter regular expression to PATTERN.  The text
615between two delimiters, before the first delimiter, and after the last
616delimiter is considered to be a record.  The default record delimiter
617is the regexp "\n", so by default a record is a line.  PATTERN can be
618any regular expression that does not match the empty string.  For
619example, using -d "^From " defines mail messages as records in a
620Mailbox format file.
621 c
622Exit status 0.
623#### TEST: agrep -s -d \n\n -M PATTERN records.in
6240:Force PATTERN to match only whole words.  A "whole word" is a
625substring which either starts at the beginning or the record or is
626preceded by a non-word constituent character.  Similarly, the
627substring must either end at the end of the record or be followed by a
628non-word constituent character.  Word-constituent characters are
629alphanumerics (as defined by the current locale) and the underscore
630character.  Note that the non-word constituent characters must
631surround the match; they cannot be counted as errors.
632
6330:Set the record delimiter regular expression to PATTERN.  The text
634between two delimiters, before the first delimiter, and after the last
635delimiter is considered to be a record.  The default record delimiter
636is the regexp "\n", so by default a record is a line.  PATTERN can be
637any regular expression that does not match the empty string.  For
638example, using -d "^From " defines mail messages as records in a
639Mailbox format file.
640 c
641Exit status 0.
642#### TEST: agrep -s -d \n\n -M PATTERN < records.in
6430:Force PATTERN to match only whole words.  A "whole word" is a
644substring which either starts at the beginning or the record or is
645preceded by a non-word constituent character.  Similarly, the
646substring must either end at the end of the record or be followed by a
647non-word constituent character.  Word-constituent characters are
648alphanumerics (as defined by the current locale) and the underscore
649character.  Note that the non-word constituent characters must
650surround the match; they cannot be counted as errors.
651
6520:Set the record delimiter regular expression to PATTERN.  The text
653between two delimiters, before the first delimiter, and after the last
654delimiter is considered to be a record.  The default record delimiter
655is the regexp "\n", so by default a record is a line.  PATTERN can be
656any regular expression that does not match the empty string.  For
657example, using -d "^From " defines mail messages as records in a
658Mailbox format file.
659 c
660Exit status 0.
661#### TEST: agrep -M -d \n\n -M PATTERN records.in
662Force PATTERN to match only whole words.  A "whole word" is a
663substring which either starts at the beginning or the record or is
664preceded by a non-word constituent character.  Similarly, the
665substring must either end at the end of the record or be followed by a
666non-word constituent character.  Word-constituent characters are
667alphanumerics (as defined by the current locale) and the underscore
668character.  Note that the non-word constituent characters must
669surround the match; they cannot be counted as errors.
670
671Set the record delimiter regular expression to PATTERN.  The text
672between two delimiters, before the first delimiter, and after the last
673delimiter is considered to be a record.  The default record delimiter
674is the regexp "\n", so by default a record is a line.  PATTERN can be
675any regular expression that does not match the empty string.  For
676example, using -d "^From " defines mail messages as records in a
677Mailbox format file.
678 c
679Exit status 0.
680#### TEST: agrep -M -d \n\n -M PATTERN < records.in
681Force PATTERN to match only whole words.  A "whole word" is a
682substring which either starts at the beginning or the record or is
683preceded by a non-word constituent character.  Similarly, the
684substring must either end at the end of the record or be followed by a
685non-word constituent character.  Word-constituent characters are
686alphanumerics (as defined by the current locale) and the underscore
687character.  Note that the non-word constituent characters must
688surround the match; they cannot be counted as errors.
689
690Set the record delimiter regular expression to PATTERN.  The text
691between two delimiters, before the first delimiter, and after the last
692delimiter is considered to be a record.  The default record delimiter
693is the regexp "\n", so by default a record is a line.  PATTERN can be
694any regular expression that does not match the empty string.  For
695example, using -d "^From " defines mail messages as records in a
696Mailbox format file.
697 c
698Exit status 0.
699#### TEST: agrep --show-position -d \n\n -M PATTERN records.in
7006-13:Force PATTERN to match only whole words.  A "whole word" is a
701substring which either starts at the beginning or the record or is
702preceded by a non-word constituent character.  Similarly, the
703substring must either end at the end of the record or be followed by a
704non-word constituent character.  Word-constituent characters are
705alphanumerics (as defined by the current locale) and the underscore
706character.  Note that the non-word constituent characters must
707surround the match; they cannot be counted as errors.
708
70947-54:Set the record delimiter regular expression to PATTERN.  The text
710between two delimiters, before the first delimiter, and after the last
711delimiter is considered to be a record.  The default record delimiter
712is the regexp "\n", so by default a record is a line.  PATTERN can be
713any regular expression that does not match the empty string.  For
714example, using -d "^From " defines mail messages as records in a
715Mailbox format file.
716 c
717Exit status 0.
718#### TEST: agrep --show-position -d \n\n -M PATTERN < records.in
7196-13:Force PATTERN to match only whole words.  A "whole word" is a
720substring which either starts at the beginning or the record or is
721preceded by a non-word constituent character.  Similarly, the
722substring must either end at the end of the record or be followed by a
723non-word constituent character.  Word-constituent characters are
724alphanumerics (as defined by the current locale) and the underscore
725character.  Note that the non-word constituent characters must
726surround the match; they cannot be counted as errors.
727
72847-54:Set the record delimiter regular expression to PATTERN.  The text
729between two delimiters, before the first delimiter, and after the last
730delimiter is considered to be a record.  The default record delimiter
731is the regexp "\n", so by default a record is a line.  PATTERN can be
732any regular expression that does not match the empty string.  For
733example, using -d "^From " defines mail messages as records in a
734Mailbox format file.
735 c
736Exit status 0.
737#### TEST: agrep --color -d \n\n -M PATTERN records.in
738Force PATTERN to match only whole words.  A "whole word" is a
739substring which either starts at the beginning or the record or is
740preceded by a non-word constituent character.  Similarly, the
741substring must either end at the end of the record or be followed by a
742non-word constituent character.  Word-constituent characters are
743alphanumerics (as defined by the current locale) and the underscore
744character.  Note that the non-word constituent characters must
745surround the match; they cannot be counted as errors.
746
747Set the record delimiter regular expression to PATTERN.  The text
748between two delimiters, before the first delimiter, and after the last
749delimiter is considered to be a record.  The default record delimiter
750is the regexp "\n", so by default a record is a line.  PATTERN can be
751any regular expression that does not match the empty string.  For
752example, using -d "^From " defines mail messages as records in a
753Mailbox format file.
754 c
755Exit status 0.
756#### TEST: agrep --color -d \n\n -M PATTERN < records.in
757Force PATTERN to match only whole words.  A "whole word" is a
758substring which either starts at the beginning or the record or is
759preceded by a non-word constituent character.  Similarly, the
760substring must either end at the end of the record or be followed by a
761non-word constituent character.  Word-constituent characters are
762alphanumerics (as defined by the current locale) and the underscore
763character.  Note that the non-word constituent characters must
764surround the match; they cannot be counted as errors.
765
766Set the record delimiter regular expression to PATTERN.  The text
767between two delimiters, before the first delimiter, and after the last
768delimiter is considered to be a record.  The default record delimiter
769is the regexp "\n", so by default a record is a line.  PATTERN can be
770any regular expression that does not match the empty string.  For
771example, using -d "^From " defines mail messages as records in a
772Mailbox format file.
773 c
774Exit status 0.
775#### TEST: agrep -H -n -s --color --show-position -d \n\n -M PATTERN records.in
776records.in:1:0:6-13:Force PATTERN to match only whole words.  A "whole word" is a
777substring which either starts at the beginning or the record or is
778preceded by a non-word constituent character.  Similarly, the
779substring must either end at the end of the record or be followed by a
780non-word constituent character.  Word-constituent characters are
781alphanumerics (as defined by the current locale) and the underscore
782character.  Note that the non-word constituent characters must
783surround the match; they cannot be counted as errors.
784
785records.in:3:0:47-54:Set the record delimiter regular expression to PATTERN.  The text
786between two delimiters, before the first delimiter, and after the last
787delimiter is considered to be a record.  The default record delimiter
788is the regexp "\n", so by default a record is a line.  PATTERN can be
789any regular expression that does not match the empty string.  For
790example, using -d "^From " defines mail messages as records in a
791Mailbox format file.
792 c
793Exit status 0.
794#### TEST: agrep -H -n -s --color --show-position -d \n\n -M PATTERN < records.in
795(standard input):1:0:6-13:Force PATTERN to match only whole words.  A "whole word" is a
796substring which either starts at the beginning or the record or is
797preceded by a non-word constituent character.  Similarly, the
798substring must either end at the end of the record or be followed by a
799non-word constituent character.  Word-constituent characters are
800alphanumerics (as defined by the current locale) and the underscore
801character.  Note that the non-word constituent characters must
802surround the match; they cannot be counted as errors.
803
804(standard input):3:0:47-54:Set the record delimiter regular expression to PATTERN.  The text
805between two delimiters, before the first delimiter, and after the last
806delimiter is considered to be a record.  The default record delimiter
807is the regexp "\n", so by default a record is a line.  PATTERN can be
808any regular expression that does not match the empty string.  For
809example, using -d "^From " defines mail messages as records in a
810Mailbox format file.
811 c
812Exit status 0.
813