Tizen 2.0 Release
[external/tizen-coreutils.git] / tests / sort / sort-tests
1 #! /bin/sh
2 # This script was generated automatically by mk-script.
3 case $# in
4   0) xx='sort';;
5   *) xx="$1";;
6 esac
7 test "$VERBOSE" && echo=echo || echo=:
8 $echo testing program: $xx
9 errors=0
10 test "$srcdir" || srcdir=.
11 test "$VERBOSE" && $xx --version 2> /dev/null
12
13 # Make sure we get English translations.
14 LANGUAGE=C
15 export LANGUAGE
16 LC_ALL=C
17 export LC_ALL
18 LANG=C
19 export LANG
20
21 _POSIX2_VERSION=199209 $xx -n $srcdir/n1.I > n1.O 2> n1.E
22 code=$?
23 if test $code != 0; then
24   $echo "Test n1(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
25   errors=`expr $errors + 1`
26 else
27   cmp n1.O $srcdir/n1.X > /dev/null 2>&1
28   case $? in
29     0) if test "$VERBOSE"; then $echo "passed n1(_POSIX2_VERSION=199209)"; fi;;
30     1) $echo "Test n1(_POSIX2_VERSION=199209) failed: files n1.O and $srcdir/n1.X differ" 1>&2
31        (diff -c n1.O $srcdir/n1.X) 2> /dev/null
32        errors=`expr $errors + 1`;;
33     2) $echo "Test n1(_POSIX2_VERSION=199209) may have failed." 1>&2
34        $echo The command "cmp n1.O $srcdir/n1.X" failed. 1>&2
35        errors=`expr $errors + 1`;;
36   esac
37 fi
38 test -s n1.E || rm -f n1.E
39 _POSIX2_VERSION=199209 $xx -n $srcdir/n2.I > n2.O 2> n2.E
40 code=$?
41 if test $code != 0; then
42   $echo "Test n2(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
43   errors=`expr $errors + 1`
44 else
45   cmp n2.O $srcdir/n2.X > /dev/null 2>&1
46   case $? in
47     0) if test "$VERBOSE"; then $echo "passed n2(_POSIX2_VERSION=199209)"; fi;;
48     1) $echo "Test n2(_POSIX2_VERSION=199209) failed: files n2.O and $srcdir/n2.X differ" 1>&2
49        (diff -c n2.O $srcdir/n2.X) 2> /dev/null
50        errors=`expr $errors + 1`;;
51     2) $echo "Test n2(_POSIX2_VERSION=199209) may have failed." 1>&2
52        $echo The command "cmp n2.O $srcdir/n2.X" failed. 1>&2
53        errors=`expr $errors + 1`;;
54   esac
55 fi
56 test -s n2.E || rm -f n2.E
57 _POSIX2_VERSION=199209 $xx -n $srcdir/n3.I > n3.O 2> n3.E
58 code=$?
59 if test $code != 0; then
60   $echo "Test n3(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
61   errors=`expr $errors + 1`
62 else
63   cmp n3.O $srcdir/n3.X > /dev/null 2>&1
64   case $? in
65     0) if test "$VERBOSE"; then $echo "passed n3(_POSIX2_VERSION=199209)"; fi;;
66     1) $echo "Test n3(_POSIX2_VERSION=199209) failed: files n3.O and $srcdir/n3.X differ" 1>&2
67        (diff -c n3.O $srcdir/n3.X) 2> /dev/null
68        errors=`expr $errors + 1`;;
69     2) $echo "Test n3(_POSIX2_VERSION=199209) may have failed." 1>&2
70        $echo The command "cmp n3.O $srcdir/n3.X" failed. 1>&2
71        errors=`expr $errors + 1`;;
72   esac
73 fi
74 test -s n3.E || rm -f n3.E
75 _POSIX2_VERSION=199209 $xx -n $srcdir/n4.I > n4.O 2> n4.E
76 code=$?
77 if test $code != 0; then
78   $echo "Test n4(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
79   errors=`expr $errors + 1`
80 else
81   cmp n4.O $srcdir/n4.X > /dev/null 2>&1
82   case $? in
83     0) if test "$VERBOSE"; then $echo "passed n4(_POSIX2_VERSION=199209)"; fi;;
84     1) $echo "Test n4(_POSIX2_VERSION=199209) failed: files n4.O and $srcdir/n4.X differ" 1>&2
85        (diff -c n4.O $srcdir/n4.X) 2> /dev/null
86        errors=`expr $errors + 1`;;
87     2) $echo "Test n4(_POSIX2_VERSION=199209) may have failed." 1>&2
88        $echo The command "cmp n4.O $srcdir/n4.X" failed. 1>&2
89        errors=`expr $errors + 1`;;
90   esac
91 fi
92 test -s n4.E || rm -f n4.E
93 _POSIX2_VERSION=199209 $xx -n $srcdir/n5.I > n5.O 2> n5.E
94 code=$?
95 if test $code != 0; then
96   $echo "Test n5(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
97   errors=`expr $errors + 1`
98 else
99   cmp n5.O $srcdir/n5.X > /dev/null 2>&1
100   case $? in
101     0) if test "$VERBOSE"; then $echo "passed n5(_POSIX2_VERSION=199209)"; fi;;
102     1) $echo "Test n5(_POSIX2_VERSION=199209) failed: files n5.O and $srcdir/n5.X differ" 1>&2
103        (diff -c n5.O $srcdir/n5.X) 2> /dev/null
104        errors=`expr $errors + 1`;;
105     2) $echo "Test n5(_POSIX2_VERSION=199209) may have failed." 1>&2
106        $echo The command "cmp n5.O $srcdir/n5.X" failed. 1>&2
107        errors=`expr $errors + 1`;;
108   esac
109 fi
110 test -s n5.E || rm -f n5.E
111 _POSIX2_VERSION=199209 $xx -n $srcdir/n6.I > n6.O 2> n6.E
112 code=$?
113 if test $code != 0; then
114   $echo "Test n6(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
115   errors=`expr $errors + 1`
116 else
117   cmp n6.O $srcdir/n6.X > /dev/null 2>&1
118   case $? in
119     0) if test "$VERBOSE"; then $echo "passed n6(_POSIX2_VERSION=199209)"; fi;;
120     1) $echo "Test n6(_POSIX2_VERSION=199209) failed: files n6.O and $srcdir/n6.X differ" 1>&2
121        (diff -c n6.O $srcdir/n6.X) 2> /dev/null
122        errors=`expr $errors + 1`;;
123     2) $echo "Test n6(_POSIX2_VERSION=199209) may have failed." 1>&2
124        $echo The command "cmp n6.O $srcdir/n6.X" failed. 1>&2
125        errors=`expr $errors + 1`;;
126   esac
127 fi
128 test -s n6.E || rm -f n6.E
129 _POSIX2_VERSION=199209 $xx -n $srcdir/n7.I > n7.O 2> n7.E
130 code=$?
131 if test $code != 0; then
132   $echo "Test n7(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
133   errors=`expr $errors + 1`
134 else
135   cmp n7.O $srcdir/n7.X > /dev/null 2>&1
136   case $? in
137     0) if test "$VERBOSE"; then $echo "passed n7(_POSIX2_VERSION=199209)"; fi;;
138     1) $echo "Test n7(_POSIX2_VERSION=199209) failed: files n7.O and $srcdir/n7.X differ" 1>&2
139        (diff -c n7.O $srcdir/n7.X) 2> /dev/null
140        errors=`expr $errors + 1`;;
141     2) $echo "Test n7(_POSIX2_VERSION=199209) may have failed." 1>&2
142        $echo The command "cmp n7.O $srcdir/n7.X" failed. 1>&2
143        errors=`expr $errors + 1`;;
144   esac
145 fi
146 test -s n7.E || rm -f n7.E
147 _POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n8a.I > n8a.O 2> n8a.E
148 code=$?
149 if test $code != 0; then
150   $echo "Test n8a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
151   errors=`expr $errors + 1`
152 else
153   cmp n8a.O $srcdir/n8a.X > /dev/null 2>&1
154   case $? in
155     0) if test "$VERBOSE"; then $echo "passed n8a(_POSIX2_VERSION=199209)"; fi;;
156     1) $echo "Test n8a(_POSIX2_VERSION=199209) failed: files n8a.O and $srcdir/n8a.X differ" 1>&2
157        (diff -c n8a.O $srcdir/n8a.X) 2> /dev/null
158        errors=`expr $errors + 1`;;
159     2) $echo "Test n8a(_POSIX2_VERSION=199209) may have failed." 1>&2
160        $echo The command "cmp n8a.O $srcdir/n8a.X" failed. 1>&2
161        errors=`expr $errors + 1`;;
162   esac
163 fi
164 test -s n8a.E || rm -f n8a.E
165 _POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n8b.I > n8b.O 2> n8b.E
166 code=$?
167 if test $code != 0; then
168   $echo "Test n8b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
169   errors=`expr $errors + 1`
170 else
171   cmp n8b.O $srcdir/n8b.X > /dev/null 2>&1
172   case $? in
173     0) if test "$VERBOSE"; then $echo "passed n8b(_POSIX2_VERSION=199209)"; fi;;
174     1) $echo "Test n8b(_POSIX2_VERSION=199209) failed: files n8b.O and $srcdir/n8b.X differ" 1>&2
175        (diff -c n8b.O $srcdir/n8b.X) 2> /dev/null
176        errors=`expr $errors + 1`;;
177     2) $echo "Test n8b(_POSIX2_VERSION=199209) may have failed." 1>&2
178        $echo The command "cmp n8b.O $srcdir/n8b.X" failed. 1>&2
179        errors=`expr $errors + 1`;;
180   esac
181 fi
182 test -s n8b.E || rm -f n8b.E
183 _POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n9a.I > n9a.O 2> n9a.E
184 code=$?
185 if test $code != 0; then
186   $echo "Test n9a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
187   errors=`expr $errors + 1`
188 else
189   cmp n9a.O $srcdir/n9a.X > /dev/null 2>&1
190   case $? in
191     0) if test "$VERBOSE"; then $echo "passed n9a(_POSIX2_VERSION=199209)"; fi;;
192     1) $echo "Test n9a(_POSIX2_VERSION=199209) failed: files n9a.O and $srcdir/n9a.X differ" 1>&2
193        (diff -c n9a.O $srcdir/n9a.X) 2> /dev/null
194        errors=`expr $errors + 1`;;
195     2) $echo "Test n9a(_POSIX2_VERSION=199209) may have failed." 1>&2
196        $echo The command "cmp n9a.O $srcdir/n9a.X" failed. 1>&2
197        errors=`expr $errors + 1`;;
198   esac
199 fi
200 test -s n9a.E || rm -f n9a.E
201 _POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n9b.I > n9b.O 2> n9b.E
202 code=$?
203 if test $code != 0; then
204   $echo "Test n9b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
205   errors=`expr $errors + 1`
206 else
207   cmp n9b.O $srcdir/n9b.X > /dev/null 2>&1
208   case $? in
209     0) if test "$VERBOSE"; then $echo "passed n9b(_POSIX2_VERSION=199209)"; fi;;
210     1) $echo "Test n9b(_POSIX2_VERSION=199209) failed: files n9b.O and $srcdir/n9b.X differ" 1>&2
211        (diff -c n9b.O $srcdir/n9b.X) 2> /dev/null
212        errors=`expr $errors + 1`;;
213     2) $echo "Test n9b(_POSIX2_VERSION=199209) may have failed." 1>&2
214        $echo The command "cmp n9b.O $srcdir/n9b.X" failed. 1>&2
215        errors=`expr $errors + 1`;;
216   esac
217 fi
218 test -s n9b.E || rm -f n9b.E
219 _POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n10a.I > n10a.O 2> n10a.E
220 code=$?
221 if test $code != 0; then
222   $echo "Test n10a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
223   errors=`expr $errors + 1`
224 else
225   cmp n10a.O $srcdir/n10a.X > /dev/null 2>&1
226   case $? in
227     0) if test "$VERBOSE"; then $echo "passed n10a(_POSIX2_VERSION=199209)"; fi;;
228     1) $echo "Test n10a(_POSIX2_VERSION=199209) failed: files n10a.O and $srcdir/n10a.X differ" 1>&2
229        (diff -c n10a.O $srcdir/n10a.X) 2> /dev/null
230        errors=`expr $errors + 1`;;
231     2) $echo "Test n10a(_POSIX2_VERSION=199209) may have failed." 1>&2
232        $echo The command "cmp n10a.O $srcdir/n10a.X" failed. 1>&2
233        errors=`expr $errors + 1`;;
234   esac
235 fi
236 test -s n10a.E || rm -f n10a.E
237 _POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n10b.I > n10b.O 2> n10b.E
238 code=$?
239 if test $code != 0; then
240   $echo "Test n10b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
241   errors=`expr $errors + 1`
242 else
243   cmp n10b.O $srcdir/n10b.X > /dev/null 2>&1
244   case $? in
245     0) if test "$VERBOSE"; then $echo "passed n10b(_POSIX2_VERSION=199209)"; fi;;
246     1) $echo "Test n10b(_POSIX2_VERSION=199209) failed: files n10b.O and $srcdir/n10b.X differ" 1>&2
247        (diff -c n10b.O $srcdir/n10b.X) 2> /dev/null
248        errors=`expr $errors + 1`;;
249     2) $echo "Test n10b(_POSIX2_VERSION=199209) may have failed." 1>&2
250        $echo The command "cmp n10b.O $srcdir/n10b.X" failed. 1>&2
251        errors=`expr $errors + 1`;;
252   esac
253 fi
254 test -s n10b.E || rm -f n10b.E
255 _POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n11a.I > n11a.O 2> n11a.E
256 code=$?
257 if test $code != 0; then
258   $echo "Test n11a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
259   errors=`expr $errors + 1`
260 else
261   cmp n11a.O $srcdir/n11a.X > /dev/null 2>&1
262   case $? in
263     0) if test "$VERBOSE"; then $echo "passed n11a(_POSIX2_VERSION=199209)"; fi;;
264     1) $echo "Test n11a(_POSIX2_VERSION=199209) failed: files n11a.O and $srcdir/n11a.X differ" 1>&2
265        (diff -c n11a.O $srcdir/n11a.X) 2> /dev/null
266        errors=`expr $errors + 1`;;
267     2) $echo "Test n11a(_POSIX2_VERSION=199209) may have failed." 1>&2
268        $echo The command "cmp n11a.O $srcdir/n11a.X" failed. 1>&2
269        errors=`expr $errors + 1`;;
270   esac
271 fi
272 test -s n11a.E || rm -f n11a.E
273 _POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n11b.I > n11b.O 2> n11b.E
274 code=$?
275 if test $code != 0; then
276   $echo "Test n11b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
277   errors=`expr $errors + 1`
278 else
279   cmp n11b.O $srcdir/n11b.X > /dev/null 2>&1
280   case $? in
281     0) if test "$VERBOSE"; then $echo "passed n11b(_POSIX2_VERSION=199209)"; fi;;
282     1) $echo "Test n11b(_POSIX2_VERSION=199209) failed: files n11b.O and $srcdir/n11b.X differ" 1>&2
283        (diff -c n11b.O $srcdir/n11b.X) 2> /dev/null
284        errors=`expr $errors + 1`;;
285     2) $echo "Test n11b(_POSIX2_VERSION=199209) may have failed." 1>&2
286        $echo The command "cmp n11b.O $srcdir/n11b.X" failed. 1>&2
287        errors=`expr $errors + 1`;;
288   esac
289 fi
290 test -s n11b.E || rm -f n11b.E
291 _POSIX2_VERSION=199209 $xx  $srcdir/01a.I > 01a.O 2> 01a.E
292 code=$?
293 if test $code != 0; then
294   $echo "Test 01a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
295   errors=`expr $errors + 1`
296 else
297   cmp 01a.O $srcdir/01a.X > /dev/null 2>&1
298   case $? in
299     0) if test "$VERBOSE"; then $echo "passed 01a(_POSIX2_VERSION=199209)"; fi;;
300     1) $echo "Test 01a(_POSIX2_VERSION=199209) failed: files 01a.O and $srcdir/01a.X differ" 1>&2
301        (diff -c 01a.O $srcdir/01a.X) 2> /dev/null
302        errors=`expr $errors + 1`;;
303     2) $echo "Test 01a(_POSIX2_VERSION=199209) may have failed." 1>&2
304        $echo The command "cmp 01a.O $srcdir/01a.X" failed. 1>&2
305        errors=`expr $errors + 1`;;
306   esac
307 fi
308 test -s 01a.E || rm -f 01a.E
309 _POSIX2_VERSION=199209 $xx -c $srcdir/02a.I > 02a.O 2> 02a.E
310 code=$?
311 if test $code != 0; then
312   $echo "Test 02a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
313   errors=`expr $errors + 1`
314 else
315   cmp 02a.O $srcdir/02a.X > /dev/null 2>&1
316   case $? in
317     0) if test "$VERBOSE"; then $echo "passed 02a(_POSIX2_VERSION=199209)"; fi;;
318     1) $echo "Test 02a(_POSIX2_VERSION=199209) failed: files 02a.O and $srcdir/02a.X differ" 1>&2
319        (diff -c 02a.O $srcdir/02a.X) 2> /dev/null
320        errors=`expr $errors + 1`;;
321     2) $echo "Test 02a(_POSIX2_VERSION=199209) may have failed." 1>&2
322        $echo The command "cmp 02a.O $srcdir/02a.X" failed. 1>&2
323        errors=`expr $errors + 1`;;
324   esac
325 fi
326 test -s 02a.E || rm -f 02a.E
327 _POSIX2_VERSION=199209 $xx -c $srcdir/02b.I > 02b.O 2> 02b.E
328 code=$?
329 if test $code != 1; then
330   $echo "Test 02b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 1" 1>&2
331   errors=`expr $errors + 1`
332 else
333   cmp 02b.O $srcdir/02b.X > /dev/null 2>&1
334   case $? in
335     0) if test "$VERBOSE"; then $echo "passed 02b(_POSIX2_VERSION=199209)"; fi;;
336     1) $echo "Test 02b(_POSIX2_VERSION=199209) failed: files 02b.O and $srcdir/02b.X differ" 1>&2
337        (diff -c 02b.O $srcdir/02b.X) 2> /dev/null
338        errors=`expr $errors + 1`;;
339     2) $echo "Test 02b(_POSIX2_VERSION=199209) may have failed." 1>&2
340        $echo The command "cmp 02b.O $srcdir/02b.X" failed. 1>&2
341        errors=`expr $errors + 1`;;
342   esac
343 fi
344 test -s 02b.E || rm -f 02b.E
345 _POSIX2_VERSION=199209 $xx -c -k1,1 $srcdir/02c.I > 02c.O 2> 02c.E
346 code=$?
347 if test $code != 0; then
348   $echo "Test 02c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
349   errors=`expr $errors + 1`
350 else
351   cmp 02c.O $srcdir/02c.X > /dev/null 2>&1
352   case $? in
353     0) if test "$VERBOSE"; then $echo "passed 02c(_POSIX2_VERSION=199209)"; fi;;
354     1) $echo "Test 02c(_POSIX2_VERSION=199209) failed: files 02c.O and $srcdir/02c.X differ" 1>&2
355        (diff -c 02c.O $srcdir/02c.X) 2> /dev/null
356        errors=`expr $errors + 1`;;
357     2) $echo "Test 02c(_POSIX2_VERSION=199209) may have failed." 1>&2
358        $echo The command "cmp 02c.O $srcdir/02c.X" failed. 1>&2
359        errors=`expr $errors + 1`;;
360   esac
361 fi
362 test -s 02c.E || rm -f 02c.E
363 _POSIX2_VERSION=199209 $xx -C $srcdir/02d.I > 02d.O 2> 02d.E
364 code=$?
365 if test $code != 0; then
366   $echo "Test 02d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
367   errors=`expr $errors + 1`
368 else
369   cmp 02d.O $srcdir/02d.X > /dev/null 2>&1
370   case $? in
371     0) if test "$VERBOSE"; then $echo "passed 02d(_POSIX2_VERSION=199209)"; fi;;
372     1) $echo "Test 02d(_POSIX2_VERSION=199209) failed: files 02d.O and $srcdir/02d.X differ" 1>&2
373        (diff -c 02d.O $srcdir/02d.X) 2> /dev/null
374        errors=`expr $errors + 1`;;
375     2) $echo "Test 02d(_POSIX2_VERSION=199209) may have failed." 1>&2
376        $echo The command "cmp 02d.O $srcdir/02d.X" failed. 1>&2
377        errors=`expr $errors + 1`;;
378   esac
379 fi
380 test -s 02d.E || rm -f 02d.E
381 _POSIX2_VERSION=199209 $xx -C $srcdir/02e.I > 02e.O 2> 02e.E
382 code=$?
383 if test $code != 1; then
384   $echo "Test 02e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 1" 1>&2
385   errors=`expr $errors + 1`
386 else
387   cmp 02e.O $srcdir/02e.X > /dev/null 2>&1
388   case $? in
389     0) if test "$VERBOSE"; then $echo "passed 02e(_POSIX2_VERSION=199209)"; fi;;
390     1) $echo "Test 02e(_POSIX2_VERSION=199209) failed: files 02e.O and $srcdir/02e.X differ" 1>&2
391        (diff -c 02e.O $srcdir/02e.X) 2> /dev/null
392        errors=`expr $errors + 1`;;
393     2) $echo "Test 02e(_POSIX2_VERSION=199209) may have failed." 1>&2
394        $echo The command "cmp 02e.O $srcdir/02e.X" failed. 1>&2
395        errors=`expr $errors + 1`;;
396   esac
397 fi
398 test -s 02e.E || rm -f 02e.E
399 _POSIX2_VERSION=199209 $xx -cu $srcdir/02m.I > 02m.O 2> 02m.E
400 code=$?
401 if test $code != 1; then
402   $echo "Test 02m(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 1" 1>&2
403   errors=`expr $errors + 1`
404 else
405   cmp 02m.O $srcdir/02m.X > /dev/null 2>&1
406   case $? in
407     0) if test "$VERBOSE"; then $echo "passed 02m(_POSIX2_VERSION=199209)"; fi;;
408     1) $echo "Test 02m(_POSIX2_VERSION=199209) failed: files 02m.O and $srcdir/02m.X differ" 1>&2
409        (diff -c 02m.O $srcdir/02m.X) 2> /dev/null
410        errors=`expr $errors + 1`;;
411     2) $echo "Test 02m(_POSIX2_VERSION=199209) may have failed." 1>&2
412        $echo The command "cmp 02m.O $srcdir/02m.X" failed. 1>&2
413        errors=`expr $errors + 1`;;
414   esac
415 fi
416 test -s 02m.E || rm -f 02m.E
417 _POSIX2_VERSION=199209 $xx -cu $srcdir/02n.I > 02n.O 2> 02n.E
418 code=$?
419 if test $code != 0; then
420   $echo "Test 02n(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
421   errors=`expr $errors + 1`
422 else
423   cmp 02n.O $srcdir/02n.X > /dev/null 2>&1
424   case $? in
425     0) if test "$VERBOSE"; then $echo "passed 02n(_POSIX2_VERSION=199209)"; fi;;
426     1) $echo "Test 02n(_POSIX2_VERSION=199209) failed: files 02n.O and $srcdir/02n.X differ" 1>&2
427        (diff -c 02n.O $srcdir/02n.X) 2> /dev/null
428        errors=`expr $errors + 1`;;
429     2) $echo "Test 02n(_POSIX2_VERSION=199209) may have failed." 1>&2
430        $echo The command "cmp 02n.O $srcdir/02n.X" failed. 1>&2
431        errors=`expr $errors + 1`;;
432   esac
433 fi
434 test -s 02n.E || rm -f 02n.E
435 _POSIX2_VERSION=199209 $xx -cu $srcdir/02o.I > 02o.O 2> 02o.E
436 code=$?
437 if test $code != 1; then
438   $echo "Test 02o(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 1" 1>&2
439   errors=`expr $errors + 1`
440 else
441   cmp 02o.O $srcdir/02o.X > /dev/null 2>&1
442   case $? in
443     0) if test "$VERBOSE"; then $echo "passed 02o(_POSIX2_VERSION=199209)"; fi;;
444     1) $echo "Test 02o(_POSIX2_VERSION=199209) failed: files 02o.O and $srcdir/02o.X differ" 1>&2
445        (diff -c 02o.O $srcdir/02o.X) 2> /dev/null
446        errors=`expr $errors + 1`;;
447     2) $echo "Test 02o(_POSIX2_VERSION=199209) may have failed." 1>&2
448        $echo The command "cmp 02o.O $srcdir/02o.X" failed. 1>&2
449        errors=`expr $errors + 1`;;
450   esac
451 fi
452 test -s 02o.E || rm -f 02o.E
453 _POSIX2_VERSION=199209 $xx -cu $srcdir/02p.I > 02p.O 2> 02p.E
454 code=$?
455 if test $code != 1; then
456   $echo "Test 02p(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 1" 1>&2
457   errors=`expr $errors + 1`
458 else
459   cmp 02p.O $srcdir/02p.X > /dev/null 2>&1
460   case $? in
461     0) if test "$VERBOSE"; then $echo "passed 02p(_POSIX2_VERSION=199209)"; fi;;
462     1) $echo "Test 02p(_POSIX2_VERSION=199209) failed: files 02p.O and $srcdir/02p.X differ" 1>&2
463        (diff -c 02p.O $srcdir/02p.X) 2> /dev/null
464        errors=`expr $errors + 1`;;
465     2) $echo "Test 02p(_POSIX2_VERSION=199209) may have failed." 1>&2
466        $echo The command "cmp 02p.O $srcdir/02p.X" failed. 1>&2
467        errors=`expr $errors + 1`;;
468   esac
469 fi
470 test -s 02p.E || rm -f 02p.E
471 _POSIX2_VERSION=199209 $xx -k1 $srcdir/03a.I > 03a.O 2> 03a.E
472 code=$?
473 if test $code != 0; then
474   $echo "Test 03a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
475   errors=`expr $errors + 1`
476 else
477   cmp 03a.O $srcdir/03a.X > /dev/null 2>&1
478   case $? in
479     0) if test "$VERBOSE"; then $echo "passed 03a(_POSIX2_VERSION=199209)"; fi;;
480     1) $echo "Test 03a(_POSIX2_VERSION=199209) failed: files 03a.O and $srcdir/03a.X differ" 1>&2
481        (diff -c 03a.O $srcdir/03a.X) 2> /dev/null
482        errors=`expr $errors + 1`;;
483     2) $echo "Test 03a(_POSIX2_VERSION=199209) may have failed." 1>&2
484        $echo The command "cmp 03a.O $srcdir/03a.X" failed. 1>&2
485        errors=`expr $errors + 1`;;
486   esac
487 fi
488 test -s 03a.E || rm -f 03a.E
489 _POSIX2_VERSION=199209 $xx -k1,1 $srcdir/03b.I > 03b.O 2> 03b.E
490 code=$?
491 if test $code != 0; then
492   $echo "Test 03b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
493   errors=`expr $errors + 1`
494 else
495   cmp 03b.O $srcdir/03b.X > /dev/null 2>&1
496   case $? in
497     0) if test "$VERBOSE"; then $echo "passed 03b(_POSIX2_VERSION=199209)"; fi;;
498     1) $echo "Test 03b(_POSIX2_VERSION=199209) failed: files 03b.O and $srcdir/03b.X differ" 1>&2
499        (diff -c 03b.O $srcdir/03b.X) 2> /dev/null
500        errors=`expr $errors + 1`;;
501     2) $echo "Test 03b(_POSIX2_VERSION=199209) may have failed." 1>&2
502        $echo The command "cmp 03b.O $srcdir/03b.X" failed. 1>&2
503        errors=`expr $errors + 1`;;
504   esac
505 fi
506 test -s 03b.E || rm -f 03b.E
507 _POSIX2_VERSION=199209 $xx -k1 -k2 $srcdir/03c.I > 03c.O 2> 03c.E
508 code=$?
509 if test $code != 0; then
510   $echo "Test 03c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
511   errors=`expr $errors + 1`
512 else
513   cmp 03c.O $srcdir/03c.X > /dev/null 2>&1
514   case $? in
515     0) if test "$VERBOSE"; then $echo "passed 03c(_POSIX2_VERSION=199209)"; fi;;
516     1) $echo "Test 03c(_POSIX2_VERSION=199209) failed: files 03c.O and $srcdir/03c.X differ" 1>&2
517        (diff -c 03c.O $srcdir/03c.X) 2> /dev/null
518        errors=`expr $errors + 1`;;
519     2) $echo "Test 03c(_POSIX2_VERSION=199209) may have failed." 1>&2
520        $echo The command "cmp 03c.O $srcdir/03c.X" failed. 1>&2
521        errors=`expr $errors + 1`;;
522   esac
523 fi
524 test -s 03c.E || rm -f 03c.E
525 _POSIX2_VERSION=199209 $xx -k0 $srcdir/03d.I > 03d.O 2> 03d.E
526 code=$?
527 if test $code != 2; then
528   $echo "Test 03d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
529   errors=`expr $errors + 1`
530 else
531   cmp 03d.O $srcdir/03d.X > /dev/null 2>&1
532   case $? in
533     0) if test "$VERBOSE"; then $echo "passed 03d(_POSIX2_VERSION=199209)"; fi;;
534     1) $echo "Test 03d(_POSIX2_VERSION=199209) failed: files 03d.O and $srcdir/03d.X differ" 1>&2
535        (diff -c 03d.O $srcdir/03d.X) 2> /dev/null
536        errors=`expr $errors + 1`;;
537     2) $echo "Test 03d(_POSIX2_VERSION=199209) may have failed." 1>&2
538        $echo The command "cmp 03d.O $srcdir/03d.X" failed. 1>&2
539        errors=`expr $errors + 1`;;
540   esac
541 fi
542 test -s 03d.E || rm -f 03d.E
543 _POSIX2_VERSION=199209 $xx -k1.0 $srcdir/03e.I > 03e.O 2> 03e.E
544 code=$?
545 if test $code != 2; then
546   $echo "Test 03e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
547   errors=`expr $errors + 1`
548 else
549   cmp 03e.O $srcdir/03e.X > /dev/null 2>&1
550   case $? in
551     0) if test "$VERBOSE"; then $echo "passed 03e(_POSIX2_VERSION=199209)"; fi;;
552     1) $echo "Test 03e(_POSIX2_VERSION=199209) failed: files 03e.O and $srcdir/03e.X differ" 1>&2
553        (diff -c 03e.O $srcdir/03e.X) 2> /dev/null
554        errors=`expr $errors + 1`;;
555     2) $echo "Test 03e(_POSIX2_VERSION=199209) may have failed." 1>&2
556        $echo The command "cmp 03e.O $srcdir/03e.X" failed. 1>&2
557        errors=`expr $errors + 1`;;
558   esac
559 fi
560 test -s 03e.E || rm -f 03e.E
561 _POSIX2_VERSION=199209 $xx -k1.1,-k0 $srcdir/03f.I > 03f.O 2> 03f.E
562 code=$?
563 if test $code != 2; then
564   $echo "Test 03f(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
565   errors=`expr $errors + 1`
566 else
567   cmp 03f.O $srcdir/03f.X > /dev/null 2>&1
568   case $? in
569     0) if test "$VERBOSE"; then $echo "passed 03f(_POSIX2_VERSION=199209)"; fi;;
570     1) $echo "Test 03f(_POSIX2_VERSION=199209) failed: files 03f.O and $srcdir/03f.X differ" 1>&2
571        (diff -c 03f.O $srcdir/03f.X) 2> /dev/null
572        errors=`expr $errors + 1`;;
573     2) $echo "Test 03f(_POSIX2_VERSION=199209) may have failed." 1>&2
574        $echo The command "cmp 03f.O $srcdir/03f.X" failed. 1>&2
575        errors=`expr $errors + 1`;;
576   esac
577 fi
578 test -s 03f.E || rm -f 03f.E
579 _POSIX2_VERSION=199209 $xx -k1.1,1.0 $srcdir/03g.I > 03g.O 2> 03g.E
580 code=$?
581 if test $code != 0; then
582   $echo "Test 03g(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
583   errors=`expr $errors + 1`
584 else
585   cmp 03g.O $srcdir/03g.X > /dev/null 2>&1
586   case $? in
587     0) if test "$VERBOSE"; then $echo "passed 03g(_POSIX2_VERSION=199209)"; fi;;
588     1) $echo "Test 03g(_POSIX2_VERSION=199209) failed: files 03g.O and $srcdir/03g.X differ" 1>&2
589        (diff -c 03g.O $srcdir/03g.X) 2> /dev/null
590        errors=`expr $errors + 1`;;
591     2) $echo "Test 03g(_POSIX2_VERSION=199209) may have failed." 1>&2
592        $echo The command "cmp 03g.O $srcdir/03g.X" failed. 1>&2
593        errors=`expr $errors + 1`;;
594   esac
595 fi
596 test -s 03g.E || rm -f 03g.E
597 _POSIX2_VERSION=199209 $xx -k1.1,1 $srcdir/03h.I > 03h.O 2> 03h.E
598 code=$?
599 if test $code != 0; then
600   $echo "Test 03h(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
601   errors=`expr $errors + 1`
602 else
603   cmp 03h.O $srcdir/03h.X > /dev/null 2>&1
604   case $? in
605     0) if test "$VERBOSE"; then $echo "passed 03h(_POSIX2_VERSION=199209)"; fi;;
606     1) $echo "Test 03h(_POSIX2_VERSION=199209) failed: files 03h.O and $srcdir/03h.X differ" 1>&2
607        (diff -c 03h.O $srcdir/03h.X) 2> /dev/null
608        errors=`expr $errors + 1`;;
609     2) $echo "Test 03h(_POSIX2_VERSION=199209) may have failed." 1>&2
610        $echo The command "cmp 03h.O $srcdir/03h.X" failed. 1>&2
611        errors=`expr $errors + 1`;;
612   esac
613 fi
614 test -s 03h.E || rm -f 03h.E
615 _POSIX2_VERSION=199209 $xx -k1,1 $srcdir/03i.I > 03i.O 2> 03i.E
616 code=$?
617 if test $code != 0; then
618   $echo "Test 03i(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
619   errors=`expr $errors + 1`
620 else
621   cmp 03i.O $srcdir/03i.X > /dev/null 2>&1
622   case $? in
623     0) if test "$VERBOSE"; then $echo "passed 03i(_POSIX2_VERSION=199209)"; fi;;
624     1) $echo "Test 03i(_POSIX2_VERSION=199209) failed: files 03i.O and $srcdir/03i.X differ" 1>&2
625        (diff -c 03i.O $srcdir/03i.X) 2> /dev/null
626        errors=`expr $errors + 1`;;
627     2) $echo "Test 03i(_POSIX2_VERSION=199209) may have failed." 1>&2
628        $echo The command "cmp 03i.O $srcdir/03i.X" failed. 1>&2
629        errors=`expr $errors + 1`;;
630   esac
631 fi
632 test -s 03i.E || rm -f 03i.E
633 _POSIX2_VERSION=199209 $xx -nc $srcdir/04a.I > 04a.O 2> 04a.E
634 code=$?
635 if test $code != 0; then
636   $echo "Test 04a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
637   errors=`expr $errors + 1`
638 else
639   cmp 04a.O $srcdir/04a.X > /dev/null 2>&1
640   case $? in
641     0) if test "$VERBOSE"; then $echo "passed 04a(_POSIX2_VERSION=199209)"; fi;;
642     1) $echo "Test 04a(_POSIX2_VERSION=199209) failed: files 04a.O and $srcdir/04a.X differ" 1>&2
643        (diff -c 04a.O $srcdir/04a.X) 2> /dev/null
644        errors=`expr $errors + 1`;;
645     2) $echo "Test 04a(_POSIX2_VERSION=199209) may have failed." 1>&2
646        $echo The command "cmp 04a.O $srcdir/04a.X" failed. 1>&2
647        errors=`expr $errors + 1`;;
648   esac
649 fi
650 test -s 04a.E || rm -f 04a.E
651 _POSIX2_VERSION=199209 $xx -n $srcdir/04b.I > 04b.O 2> 04b.E
652 code=$?
653 if test $code != 0; then
654   $echo "Test 04b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
655   errors=`expr $errors + 1`
656 else
657   cmp 04b.O $srcdir/04b.X > /dev/null 2>&1
658   case $? in
659     0) if test "$VERBOSE"; then $echo "passed 04b(_POSIX2_VERSION=199209)"; fi;;
660     1) $echo "Test 04b(_POSIX2_VERSION=199209) failed: files 04b.O and $srcdir/04b.X differ" 1>&2
661        (diff -c 04b.O $srcdir/04b.X) 2> /dev/null
662        errors=`expr $errors + 1`;;
663     2) $echo "Test 04b(_POSIX2_VERSION=199209) may have failed." 1>&2
664        $echo The command "cmp 04b.O $srcdir/04b.X" failed. 1>&2
665        errors=`expr $errors + 1`;;
666   esac
667 fi
668 test -s 04b.E || rm -f 04b.E
669 _POSIX2_VERSION=199209 $xx -k1n $srcdir/04c.I > 04c.O 2> 04c.E
670 code=$?
671 if test $code != 0; then
672   $echo "Test 04c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
673   errors=`expr $errors + 1`
674 else
675   cmp 04c.O $srcdir/04c.X > /dev/null 2>&1
676   case $? in
677     0) if test "$VERBOSE"; then $echo "passed 04c(_POSIX2_VERSION=199209)"; fi;;
678     1) $echo "Test 04c(_POSIX2_VERSION=199209) failed: files 04c.O and $srcdir/04c.X differ" 1>&2
679        (diff -c 04c.O $srcdir/04c.X) 2> /dev/null
680        errors=`expr $errors + 1`;;
681     2) $echo "Test 04c(_POSIX2_VERSION=199209) may have failed." 1>&2
682        $echo The command "cmp 04c.O $srcdir/04c.X" failed. 1>&2
683        errors=`expr $errors + 1`;;
684   esac
685 fi
686 test -s 04c.E || rm -f 04c.E
687 _POSIX2_VERSION=199209 $xx -k1 $srcdir/04d.I > 04d.O 2> 04d.E
688 code=$?
689 if test $code != 0; then
690   $echo "Test 04d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
691   errors=`expr $errors + 1`
692 else
693   cmp 04d.O $srcdir/04d.X > /dev/null 2>&1
694   case $? in
695     0) if test "$VERBOSE"; then $echo "passed 04d(_POSIX2_VERSION=199209)"; fi;;
696     1) $echo "Test 04d(_POSIX2_VERSION=199209) failed: files 04d.O and $srcdir/04d.X differ" 1>&2
697        (diff -c 04d.O $srcdir/04d.X) 2> /dev/null
698        errors=`expr $errors + 1`;;
699     2) $echo "Test 04d(_POSIX2_VERSION=199209) may have failed." 1>&2
700        $echo The command "cmp 04d.O $srcdir/04d.X" failed. 1>&2
701        errors=`expr $errors + 1`;;
702   esac
703 fi
704 test -s 04d.E || rm -f 04d.E
705 _POSIX2_VERSION=199209 $xx -k2 $srcdir/04e.I > 04e.O 2> 04e.E
706 code=$?
707 if test $code != 0; then
708   $echo "Test 04e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
709   errors=`expr $errors + 1`
710 else
711   cmp 04e.O $srcdir/04e.X > /dev/null 2>&1
712   case $? in
713     0) if test "$VERBOSE"; then $echo "passed 04e(_POSIX2_VERSION=199209)"; fi;;
714     1) $echo "Test 04e(_POSIX2_VERSION=199209) failed: files 04e.O and $srcdir/04e.X differ" 1>&2
715        (diff -c 04e.O $srcdir/04e.X) 2> /dev/null
716        errors=`expr $errors + 1`;;
717     2) $echo "Test 04e(_POSIX2_VERSION=199209) may have failed." 1>&2
718        $echo The command "cmp 04e.O $srcdir/04e.X" failed. 1>&2
719        errors=`expr $errors + 1`;;
720   esac
721 fi
722 test -s 04e.E || rm -f 04e.E
723 _POSIX2_VERSION=199209 $xx -k1,2 $srcdir/05a.I > 05a.O 2> 05a.E
724 code=$?
725 if test $code != 0; then
726   $echo "Test 05a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
727   errors=`expr $errors + 1`
728 else
729   cmp 05a.O $srcdir/05a.X > /dev/null 2>&1
730   case $? in
731     0) if test "$VERBOSE"; then $echo "passed 05a(_POSIX2_VERSION=199209)"; fi;;
732     1) $echo "Test 05a(_POSIX2_VERSION=199209) failed: files 05a.O and $srcdir/05a.X differ" 1>&2
733        (diff -c 05a.O $srcdir/05a.X) 2> /dev/null
734        errors=`expr $errors + 1`;;
735     2) $echo "Test 05a(_POSIX2_VERSION=199209) may have failed." 1>&2
736        $echo The command "cmp 05a.O $srcdir/05a.X" failed. 1>&2
737        errors=`expr $errors + 1`;;
738   esac
739 fi
740 test -s 05a.E || rm -f 05a.E
741 _POSIX2_VERSION=199209 $xx -k1,2 $srcdir/05b.I > 05b.O 2> 05b.E
742 code=$?
743 if test $code != 0; then
744   $echo "Test 05b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
745   errors=`expr $errors + 1`
746 else
747   cmp 05b.O $srcdir/05b.X > /dev/null 2>&1
748   case $? in
749     0) if test "$VERBOSE"; then $echo "passed 05b(_POSIX2_VERSION=199209)"; fi;;
750     1) $echo "Test 05b(_POSIX2_VERSION=199209) failed: files 05b.O and $srcdir/05b.X differ" 1>&2
751        (diff -c 05b.O $srcdir/05b.X) 2> /dev/null
752        errors=`expr $errors + 1`;;
753     2) $echo "Test 05b(_POSIX2_VERSION=199209) may have failed." 1>&2
754        $echo The command "cmp 05b.O $srcdir/05b.X" failed. 1>&2
755        errors=`expr $errors + 1`;;
756   esac
757 fi
758 test -s 05b.E || rm -f 05b.E
759 _POSIX2_VERSION=199209 $xx -k1 -k2 $srcdir/05c.I > 05c.O 2> 05c.E
760 code=$?
761 if test $code != 0; then
762   $echo "Test 05c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
763   errors=`expr $errors + 1`
764 else
765   cmp 05c.O $srcdir/05c.X > /dev/null 2>&1
766   case $? in
767     0) if test "$VERBOSE"; then $echo "passed 05c(_POSIX2_VERSION=199209)"; fi;;
768     1) $echo "Test 05c(_POSIX2_VERSION=199209) failed: files 05c.O and $srcdir/05c.X differ" 1>&2
769        (diff -c 05c.O $srcdir/05c.X) 2> /dev/null
770        errors=`expr $errors + 1`;;
771     2) $echo "Test 05c(_POSIX2_VERSION=199209) may have failed." 1>&2
772        $echo The command "cmp 05c.O $srcdir/05c.X" failed. 1>&2
773        errors=`expr $errors + 1`;;
774   esac
775 fi
776 test -s 05c.E || rm -f 05c.E
777 _POSIX2_VERSION=199209 $xx -k2,2 $srcdir/05d.I > 05d.O 2> 05d.E
778 code=$?
779 if test $code != 0; then
780   $echo "Test 05d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
781   errors=`expr $errors + 1`
782 else
783   cmp 05d.O $srcdir/05d.X > /dev/null 2>&1
784   case $? in
785     0) if test "$VERBOSE"; then $echo "passed 05d(_POSIX2_VERSION=199209)"; fi;;
786     1) $echo "Test 05d(_POSIX2_VERSION=199209) failed: files 05d.O and $srcdir/05d.X differ" 1>&2
787        (diff -c 05d.O $srcdir/05d.X) 2> /dev/null
788        errors=`expr $errors + 1`;;
789     2) $echo "Test 05d(_POSIX2_VERSION=199209) may have failed." 1>&2
790        $echo The command "cmp 05d.O $srcdir/05d.X" failed. 1>&2
791        errors=`expr $errors + 1`;;
792   esac
793 fi
794 test -s 05d.E || rm -f 05d.E
795 _POSIX2_VERSION=199209 $xx -k2,2 $srcdir/05e.I > 05e.O 2> 05e.E
796 code=$?
797 if test $code != 0; then
798   $echo "Test 05e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
799   errors=`expr $errors + 1`
800 else
801   cmp 05e.O $srcdir/05e.X > /dev/null 2>&1
802   case $? in
803     0) if test "$VERBOSE"; then $echo "passed 05e(_POSIX2_VERSION=199209)"; fi;;
804     1) $echo "Test 05e(_POSIX2_VERSION=199209) failed: files 05e.O and $srcdir/05e.X differ" 1>&2
805        (diff -c 05e.O $srcdir/05e.X) 2> /dev/null
806        errors=`expr $errors + 1`;;
807     2) $echo "Test 05e(_POSIX2_VERSION=199209) may have failed." 1>&2
808        $echo The command "cmp 05e.O $srcdir/05e.X" failed. 1>&2
809        errors=`expr $errors + 1`;;
810   esac
811 fi
812 test -s 05e.E || rm -f 05e.E
813 _POSIX2_VERSION=199209 $xx -k2,2 $srcdir/05f.I > 05f.O 2> 05f.E
814 code=$?
815 if test $code != 0; then
816   $echo "Test 05f(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
817   errors=`expr $errors + 1`
818 else
819   cmp 05f.O $srcdir/05f.X > /dev/null 2>&1
820   case $? in
821     0) if test "$VERBOSE"; then $echo "passed 05f(_POSIX2_VERSION=199209)"; fi;;
822     1) $echo "Test 05f(_POSIX2_VERSION=199209) failed: files 05f.O and $srcdir/05f.X differ" 1>&2
823        (diff -c 05f.O $srcdir/05f.X) 2> /dev/null
824        errors=`expr $errors + 1`;;
825     2) $echo "Test 05f(_POSIX2_VERSION=199209) may have failed." 1>&2
826        $echo The command "cmp 05f.O $srcdir/05f.X" failed. 1>&2
827        errors=`expr $errors + 1`;;
828   esac
829 fi
830 test -s 05f.E || rm -f 05f.E
831 _POSIX2_VERSION=199209 $xx -k 1,2 $srcdir/06a.I > 06a.O 2> 06a.E
832 code=$?
833 if test $code != 0; then
834   $echo "Test 06a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
835   errors=`expr $errors + 1`
836 else
837   cmp 06a.O $srcdir/06a.X > /dev/null 2>&1
838   case $? in
839     0) if test "$VERBOSE"; then $echo "passed 06a(_POSIX2_VERSION=199209)"; fi;;
840     1) $echo "Test 06a(_POSIX2_VERSION=199209) failed: files 06a.O and $srcdir/06a.X differ" 1>&2
841        (diff -c 06a.O $srcdir/06a.X) 2> /dev/null
842        errors=`expr $errors + 1`;;
843     2) $echo "Test 06a(_POSIX2_VERSION=199209) may have failed." 1>&2
844        $echo The command "cmp 06a.O $srcdir/06a.X" failed. 1>&2
845        errors=`expr $errors + 1`;;
846   esac
847 fi
848 test -s 06a.E || rm -f 06a.E
849 _POSIX2_VERSION=199209 $xx -k 1,2 $srcdir/06b.I > 06b.O 2> 06b.E
850 code=$?
851 if test $code != 0; then
852   $echo "Test 06b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
853   errors=`expr $errors + 1`
854 else
855   cmp 06b.O $srcdir/06b.X > /dev/null 2>&1
856   case $? in
857     0) if test "$VERBOSE"; then $echo "passed 06b(_POSIX2_VERSION=199209)"; fi;;
858     1) $echo "Test 06b(_POSIX2_VERSION=199209) failed: files 06b.O and $srcdir/06b.X differ" 1>&2
859        (diff -c 06b.O $srcdir/06b.X) 2> /dev/null
860        errors=`expr $errors + 1`;;
861     2) $echo "Test 06b(_POSIX2_VERSION=199209) may have failed." 1>&2
862        $echo The command "cmp 06b.O $srcdir/06b.X" failed. 1>&2
863        errors=`expr $errors + 1`;;
864   esac
865 fi
866 test -s 06b.E || rm -f 06b.E
867 _POSIX2_VERSION=199209 $xx -k 1 -k 2 $srcdir/06c.I > 06c.O 2> 06c.E
868 code=$?
869 if test $code != 0; then
870   $echo "Test 06c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
871   errors=`expr $errors + 1`
872 else
873   cmp 06c.O $srcdir/06c.X > /dev/null 2>&1
874   case $? in
875     0) if test "$VERBOSE"; then $echo "passed 06c(_POSIX2_VERSION=199209)"; fi;;
876     1) $echo "Test 06c(_POSIX2_VERSION=199209) failed: files 06c.O and $srcdir/06c.X differ" 1>&2
877        (diff -c 06c.O $srcdir/06c.X) 2> /dev/null
878        errors=`expr $errors + 1`;;
879     2) $echo "Test 06c(_POSIX2_VERSION=199209) may have failed." 1>&2
880        $echo The command "cmp 06c.O $srcdir/06c.X" failed. 1>&2
881        errors=`expr $errors + 1`;;
882   esac
883 fi
884 test -s 06c.E || rm -f 06c.E
885 _POSIX2_VERSION=199209 $xx -k 2,2 $srcdir/06d.I > 06d.O 2> 06d.E
886 code=$?
887 if test $code != 0; then
888   $echo "Test 06d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
889   errors=`expr $errors + 1`
890 else
891   cmp 06d.O $srcdir/06d.X > /dev/null 2>&1
892   case $? in
893     0) if test "$VERBOSE"; then $echo "passed 06d(_POSIX2_VERSION=199209)"; fi;;
894     1) $echo "Test 06d(_POSIX2_VERSION=199209) failed: files 06d.O and $srcdir/06d.X differ" 1>&2
895        (diff -c 06d.O $srcdir/06d.X) 2> /dev/null
896        errors=`expr $errors + 1`;;
897     2) $echo "Test 06d(_POSIX2_VERSION=199209) may have failed." 1>&2
898        $echo The command "cmp 06d.O $srcdir/06d.X" failed. 1>&2
899        errors=`expr $errors + 1`;;
900   esac
901 fi
902 test -s 06d.E || rm -f 06d.E
903 _POSIX2_VERSION=199209 $xx -k 2,2 $srcdir/06e.I > 06e.O 2> 06e.E
904 code=$?
905 if test $code != 0; then
906   $echo "Test 06e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
907   errors=`expr $errors + 1`
908 else
909   cmp 06e.O $srcdir/06e.X > /dev/null 2>&1
910   case $? in
911     0) if test "$VERBOSE"; then $echo "passed 06e(_POSIX2_VERSION=199209)"; fi;;
912     1) $echo "Test 06e(_POSIX2_VERSION=199209) failed: files 06e.O and $srcdir/06e.X differ" 1>&2
913        (diff -c 06e.O $srcdir/06e.X) 2> /dev/null
914        errors=`expr $errors + 1`;;
915     2) $echo "Test 06e(_POSIX2_VERSION=199209) may have failed." 1>&2
916        $echo The command "cmp 06e.O $srcdir/06e.X" failed. 1>&2
917        errors=`expr $errors + 1`;;
918   esac
919 fi
920 test -s 06e.E || rm -f 06e.E
921 _POSIX2_VERSION=199209 $xx -k 2,2 $srcdir/06f.I > 06f.O 2> 06f.E
922 code=$?
923 if test $code != 0; then
924   $echo "Test 06f(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
925   errors=`expr $errors + 1`
926 else
927   cmp 06f.O $srcdir/06f.X > /dev/null 2>&1
928   case $? in
929     0) if test "$VERBOSE"; then $echo "passed 06f(_POSIX2_VERSION=199209)"; fi;;
930     1) $echo "Test 06f(_POSIX2_VERSION=199209) failed: files 06f.O and $srcdir/06f.X differ" 1>&2
931        (diff -c 06f.O $srcdir/06f.X) 2> /dev/null
932        errors=`expr $errors + 1`;;
933     2) $echo "Test 06f(_POSIX2_VERSION=199209) may have failed." 1>&2
934        $echo The command "cmp 06f.O $srcdir/06f.X" failed. 1>&2
935        errors=`expr $errors + 1`;;
936   esac
937 fi
938 test -s 06f.E || rm -f 06f.E
939 _POSIX2_VERSION=199209 $xx -k 2,3 $srcdir/07a.I > 07a.O 2> 07a.E
940 code=$?
941 if test $code != 0; then
942   $echo "Test 07a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
943   errors=`expr $errors + 1`
944 else
945   cmp 07a.O $srcdir/07a.X > /dev/null 2>&1
946   case $? in
947     0) if test "$VERBOSE"; then $echo "passed 07a(_POSIX2_VERSION=199209)"; fi;;
948     1) $echo "Test 07a(_POSIX2_VERSION=199209) failed: files 07a.O and $srcdir/07a.X differ" 1>&2
949        (diff -c 07a.O $srcdir/07a.X) 2> /dev/null
950        errors=`expr $errors + 1`;;
951     2) $echo "Test 07a(_POSIX2_VERSION=199209) may have failed." 1>&2
952        $echo The command "cmp 07a.O $srcdir/07a.X" failed. 1>&2
953        errors=`expr $errors + 1`;;
954   esac
955 fi
956 test -s 07a.E || rm -f 07a.E
957 _POSIX2_VERSION=199209 $xx -k 2,3 $srcdir/07b.I > 07b.O 2> 07b.E
958 code=$?
959 if test $code != 0; then
960   $echo "Test 07b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
961   errors=`expr $errors + 1`
962 else
963   cmp 07b.O $srcdir/07b.X > /dev/null 2>&1
964   case $? in
965     0) if test "$VERBOSE"; then $echo "passed 07b(_POSIX2_VERSION=199209)"; fi;;
966     1) $echo "Test 07b(_POSIX2_VERSION=199209) failed: files 07b.O and $srcdir/07b.X differ" 1>&2
967        (diff -c 07b.O $srcdir/07b.X) 2> /dev/null
968        errors=`expr $errors + 1`;;
969     2) $echo "Test 07b(_POSIX2_VERSION=199209) may have failed." 1>&2
970        $echo The command "cmp 07b.O $srcdir/07b.X" failed. 1>&2
971        errors=`expr $errors + 1`;;
972   esac
973 fi
974 test -s 07b.E || rm -f 07b.E
975 _POSIX2_VERSION=199209 $xx -k 2,3 $srcdir/07c.I > 07c.O 2> 07c.E
976 code=$?
977 if test $code != 0; then
978   $echo "Test 07c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
979   errors=`expr $errors + 1`
980 else
981   cmp 07c.O $srcdir/07c.X > /dev/null 2>&1
982   case $? in
983     0) if test "$VERBOSE"; then $echo "passed 07c(_POSIX2_VERSION=199209)"; fi;;
984     1) $echo "Test 07c(_POSIX2_VERSION=199209) failed: files 07c.O and $srcdir/07c.X differ" 1>&2
985        (diff -c 07c.O $srcdir/07c.X) 2> /dev/null
986        errors=`expr $errors + 1`;;
987     2) $echo "Test 07c(_POSIX2_VERSION=199209) may have failed." 1>&2
988        $echo The command "cmp 07c.O $srcdir/07c.X" failed. 1>&2
989        errors=`expr $errors + 1`;;
990   esac
991 fi
992 test -s 07c.E || rm -f 07c.E
993 _POSIX2_VERSION=199209 $xx +1 -3 $srcdir/07d.I > 07d.O 2> 07d.E
994 code=$?
995 if test $code != 0; then
996   $echo "Test 07d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
997   errors=`expr $errors + 1`
998 else
999   cmp 07d.O $srcdir/07d.X > /dev/null 2>&1
1000   case $? in
1001     0) if test "$VERBOSE"; then $echo "passed 07d(_POSIX2_VERSION=199209)"; fi;;
1002     1) $echo "Test 07d(_POSIX2_VERSION=199209) failed: files 07d.O and $srcdir/07d.X differ" 1>&2
1003        (diff -c 07d.O $srcdir/07d.X) 2> /dev/null
1004        errors=`expr $errors + 1`;;
1005     2) $echo "Test 07d(_POSIX2_VERSION=199209) may have failed." 1>&2
1006        $echo The command "cmp 07d.O $srcdir/07d.X" failed. 1>&2
1007        errors=`expr $errors + 1`;;
1008   esac
1009 fi
1010 test -s 07d.E || rm -f 07d.E
1011 _POSIX2_VERSION=199209 $xx -k 2.,3 $srcdir/08a.I > 08a.O 2> 08a.E
1012 code=$?
1013 if test $code != 2; then
1014   $echo "Test 08a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
1015   errors=`expr $errors + 1`
1016 else
1017   cmp 08a.O $srcdir/08a.X > /dev/null 2>&1
1018   case $? in
1019     0) if test "$VERBOSE"; then $echo "passed 08a(_POSIX2_VERSION=199209)"; fi;;
1020     1) $echo "Test 08a(_POSIX2_VERSION=199209) failed: files 08a.O and $srcdir/08a.X differ" 1>&2
1021        (diff -c 08a.O $srcdir/08a.X) 2> /dev/null
1022        errors=`expr $errors + 1`;;
1023     2) $echo "Test 08a(_POSIX2_VERSION=199209) may have failed." 1>&2
1024        $echo The command "cmp 08a.O $srcdir/08a.X" failed. 1>&2
1025        errors=`expr $errors + 1`;;
1026   esac
1027 fi
1028 test -s 08a.E || rm -f 08a.E
1029 _POSIX2_VERSION=199209 $xx -k 2, $srcdir/08b.I > 08b.O 2> 08b.E
1030 code=$?
1031 if test $code != 2; then
1032   $echo "Test 08b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
1033   errors=`expr $errors + 1`
1034 else
1035   cmp 08b.O $srcdir/08b.X > /dev/null 2>&1
1036   case $? in
1037     0) if test "$VERBOSE"; then $echo "passed 08b(_POSIX2_VERSION=199209)"; fi;;
1038     1) $echo "Test 08b(_POSIX2_VERSION=199209) failed: files 08b.O and $srcdir/08b.X differ" 1>&2
1039        (diff -c 08b.O $srcdir/08b.X) 2> /dev/null
1040        errors=`expr $errors + 1`;;
1041     2) $echo "Test 08b(_POSIX2_VERSION=199209) may have failed." 1>&2
1042        $echo The command "cmp 08b.O $srcdir/08b.X" failed. 1>&2
1043        errors=`expr $errors + 1`;;
1044   esac
1045 fi
1046 test -s 08b.E || rm -f 08b.E
1047 _POSIX2_VERSION=199209 $xx -g $srcdir/09a.I > 09a.O 2> 09a.E
1048 code=$?
1049 if test $code != 0; then
1050   $echo "Test 09a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1051   errors=`expr $errors + 1`
1052 else
1053   cmp 09a.O $srcdir/09a.X > /dev/null 2>&1
1054   case $? in
1055     0) if test "$VERBOSE"; then $echo "passed 09a(_POSIX2_VERSION=199209)"; fi;;
1056     1) $echo "Test 09a(_POSIX2_VERSION=199209) failed: files 09a.O and $srcdir/09a.X differ" 1>&2
1057        (diff -c 09a.O $srcdir/09a.X) 2> /dev/null
1058        errors=`expr $errors + 1`;;
1059     2) $echo "Test 09a(_POSIX2_VERSION=199209) may have failed." 1>&2
1060        $echo The command "cmp 09a.O $srcdir/09a.X" failed. 1>&2
1061        errors=`expr $errors + 1`;;
1062   esac
1063 fi
1064 test -s 09a.E || rm -f 09a.E
1065 _POSIX2_VERSION=199209 $xx -n $srcdir/09b.I > 09b.O 2> 09b.E
1066 code=$?
1067 if test $code != 0; then
1068   $echo "Test 09b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1069   errors=`expr $errors + 1`
1070 else
1071   cmp 09b.O $srcdir/09b.X > /dev/null 2>&1
1072   case $? in
1073     0) if test "$VERBOSE"; then $echo "passed 09b(_POSIX2_VERSION=199209)"; fi;;
1074     1) $echo "Test 09b(_POSIX2_VERSION=199209) failed: files 09b.O and $srcdir/09b.X differ" 1>&2
1075        (diff -c 09b.O $srcdir/09b.X) 2> /dev/null
1076        errors=`expr $errors + 1`;;
1077     2) $echo "Test 09b(_POSIX2_VERSION=199209) may have failed." 1>&2
1078        $echo The command "cmp 09b.O $srcdir/09b.X" failed. 1>&2
1079        errors=`expr $errors + 1`;;
1080   esac
1081 fi
1082 test -s 09b.E || rm -f 09b.E
1083 _POSIX2_VERSION=199209 $xx -n $srcdir/09c.I > 09c.O 2> 09c.E
1084 code=$?
1085 if test $code != 0; then
1086   $echo "Test 09c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1087   errors=`expr $errors + 1`
1088 else
1089   cmp 09c.O $srcdir/09c.X > /dev/null 2>&1
1090   case $? in
1091     0) if test "$VERBOSE"; then $echo "passed 09c(_POSIX2_VERSION=199209)"; fi;;
1092     1) $echo "Test 09c(_POSIX2_VERSION=199209) failed: files 09c.O and $srcdir/09c.X differ" 1>&2
1093        (diff -c 09c.O $srcdir/09c.X) 2> /dev/null
1094        errors=`expr $errors + 1`;;
1095     2) $echo "Test 09c(_POSIX2_VERSION=199209) may have failed." 1>&2
1096        $echo The command "cmp 09c.O $srcdir/09c.X" failed. 1>&2
1097        errors=`expr $errors + 1`;;
1098   esac
1099 fi
1100 test -s 09c.E || rm -f 09c.E
1101 _POSIX2_VERSION=199209 $xx -k2g $srcdir/09d.I > 09d.O 2> 09d.E
1102 code=$?
1103 if test $code != 0; then
1104   $echo "Test 09d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1105   errors=`expr $errors + 1`
1106 else
1107   cmp 09d.O $srcdir/09d.X > /dev/null 2>&1
1108   case $? in
1109     0) if test "$VERBOSE"; then $echo "passed 09d(_POSIX2_VERSION=199209)"; fi;;
1110     1) $echo "Test 09d(_POSIX2_VERSION=199209) failed: files 09d.O and $srcdir/09d.X differ" 1>&2
1111        (diff -c 09d.O $srcdir/09d.X) 2> /dev/null
1112        errors=`expr $errors + 1`;;
1113     2) $echo "Test 09d(_POSIX2_VERSION=199209) may have failed." 1>&2
1114        $echo The command "cmp 09d.O $srcdir/09d.X" failed. 1>&2
1115        errors=`expr $errors + 1`;;
1116   esac
1117 fi
1118 test -s 09d.E || rm -f 09d.E
1119 _POSIX2_VERSION=199209 $xx -t : -k 2.2,2.2 $srcdir/10a.I > 10a.O 2> 10a.E
1120 code=$?
1121 if test $code != 0; then
1122   $echo "Test 10a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1123   errors=`expr $errors + 1`
1124 else
1125   cmp 10a.O $srcdir/10a.X > /dev/null 2>&1
1126   case $? in
1127     0) if test "$VERBOSE"; then $echo "passed 10a(_POSIX2_VERSION=199209)"; fi;;
1128     1) $echo "Test 10a(_POSIX2_VERSION=199209) failed: files 10a.O and $srcdir/10a.X differ" 1>&2
1129        (diff -c 10a.O $srcdir/10a.X) 2> /dev/null
1130        errors=`expr $errors + 1`;;
1131     2) $echo "Test 10a(_POSIX2_VERSION=199209) may have failed." 1>&2
1132        $echo The command "cmp 10a.O $srcdir/10a.X" failed. 1>&2
1133        errors=`expr $errors + 1`;;
1134   esac
1135 fi
1136 test -s 10a.E || rm -f 10a.E
1137 _POSIX2_VERSION=199209 $xx -t : +1.1 -1.2 $srcdir/10b.I > 10b.O 2> 10b.E
1138 code=$?
1139 if test $code != 0; then
1140   $echo "Test 10b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1141   errors=`expr $errors + 1`
1142 else
1143   cmp 10b.O $srcdir/10b.X > /dev/null 2>&1
1144   case $? in
1145     0) if test "$VERBOSE"; then $echo "passed 10b(_POSIX2_VERSION=199209)"; fi;;
1146     1) $echo "Test 10b(_POSIX2_VERSION=199209) failed: files 10b.O and $srcdir/10b.X differ" 1>&2
1147        (diff -c 10b.O $srcdir/10b.X) 2> /dev/null
1148        errors=`expr $errors + 1`;;
1149     2) $echo "Test 10b(_POSIX2_VERSION=199209) may have failed." 1>&2
1150        $echo The command "cmp 10b.O $srcdir/10b.X" failed. 1>&2
1151        errors=`expr $errors + 1`;;
1152   esac
1153 fi
1154 test -s 10b.E || rm -f 10b.E
1155 _POSIX2_VERSION=199209 $xx -t : -k 2.2,2.2 $srcdir/10c.I > 10c.O 2> 10c.E
1156 code=$?
1157 if test $code != 0; then
1158   $echo "Test 10c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1159   errors=`expr $errors + 1`
1160 else
1161   cmp 10c.O $srcdir/10c.X > /dev/null 2>&1
1162   case $? in
1163     0) if test "$VERBOSE"; then $echo "passed 10c(_POSIX2_VERSION=199209)"; fi;;
1164     1) $echo "Test 10c(_POSIX2_VERSION=199209) failed: files 10c.O and $srcdir/10c.X differ" 1>&2
1165        (diff -c 10c.O $srcdir/10c.X) 2> /dev/null
1166        errors=`expr $errors + 1`;;
1167     2) $echo "Test 10c(_POSIX2_VERSION=199209) may have failed." 1>&2
1168        $echo The command "cmp 10c.O $srcdir/10c.X" failed. 1>&2
1169        errors=`expr $errors + 1`;;
1170   esac
1171 fi
1172 test -s 10c.E || rm -f 10c.E
1173 _POSIX2_VERSION=199209 $xx -t : +1.1 -1.2 $srcdir/10d.I > 10d.O 2> 10d.E
1174 code=$?
1175 if test $code != 0; then
1176   $echo "Test 10d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1177   errors=`expr $errors + 1`
1178 else
1179   cmp 10d.O $srcdir/10d.X > /dev/null 2>&1
1180   case $? in
1181     0) if test "$VERBOSE"; then $echo "passed 10d(_POSIX2_VERSION=199209)"; fi;;
1182     1) $echo "Test 10d(_POSIX2_VERSION=199209) failed: files 10d.O and $srcdir/10d.X differ" 1>&2
1183        (diff -c 10d.O $srcdir/10d.X) 2> /dev/null
1184        errors=`expr $errors + 1`;;
1185     2) $echo "Test 10d(_POSIX2_VERSION=199209) may have failed." 1>&2
1186        $echo The command "cmp 10d.O $srcdir/10d.X" failed. 1>&2
1187        errors=`expr $errors + 1`;;
1188   esac
1189 fi
1190 test -s 10d.E || rm -f 10d.E
1191 _POSIX2_VERSION=199209 $xx -k 2.3,2.3 $srcdir/10a0.I > 10a0.O 2> 10a0.E
1192 code=$?
1193 if test $code != 0; then
1194   $echo "Test 10a0(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1195   errors=`expr $errors + 1`
1196 else
1197   cmp 10a0.O $srcdir/10a0.X > /dev/null 2>&1
1198   case $? in
1199     0) if test "$VERBOSE"; then $echo "passed 10a0(_POSIX2_VERSION=199209)"; fi;;
1200     1) $echo "Test 10a0(_POSIX2_VERSION=199209) failed: files 10a0.O and $srcdir/10a0.X differ" 1>&2
1201        (diff -c 10a0.O $srcdir/10a0.X) 2> /dev/null
1202        errors=`expr $errors + 1`;;
1203     2) $echo "Test 10a0(_POSIX2_VERSION=199209) may have failed." 1>&2
1204        $echo The command "cmp 10a0.O $srcdir/10a0.X" failed. 1>&2
1205        errors=`expr $errors + 1`;;
1206   esac
1207 fi
1208 test -s 10a0.E || rm -f 10a0.E
1209 _POSIX2_VERSION=199209 $xx -k 1.2,1.2 $srcdir/10a1.I > 10a1.O 2> 10a1.E
1210 code=$?
1211 if test $code != 0; then
1212   $echo "Test 10a1(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1213   errors=`expr $errors + 1`
1214 else
1215   cmp 10a1.O $srcdir/10a1.X > /dev/null 2>&1
1216   case $? in
1217     0) if test "$VERBOSE"; then $echo "passed 10a1(_POSIX2_VERSION=199209)"; fi;;
1218     1) $echo "Test 10a1(_POSIX2_VERSION=199209) failed: files 10a1.O and $srcdir/10a1.X differ" 1>&2
1219        (diff -c 10a1.O $srcdir/10a1.X) 2> /dev/null
1220        errors=`expr $errors + 1`;;
1221     2) $echo "Test 10a1(_POSIX2_VERSION=199209) may have failed." 1>&2
1222        $echo The command "cmp 10a1.O $srcdir/10a1.X" failed. 1>&2
1223        errors=`expr $errors + 1`;;
1224   esac
1225 fi
1226 test -s 10a1.E || rm -f 10a1.E
1227 _POSIX2_VERSION=199209 $xx -b -k 2.2,2.2 $srcdir/10a2.I > 10a2.O 2> 10a2.E
1228 code=$?
1229 if test $code != 0; then
1230   $echo "Test 10a2(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1231   errors=`expr $errors + 1`
1232 else
1233   cmp 10a2.O $srcdir/10a2.X > /dev/null 2>&1
1234   case $? in
1235     0) if test "$VERBOSE"; then $echo "passed 10a2(_POSIX2_VERSION=199209)"; fi;;
1236     1) $echo "Test 10a2(_POSIX2_VERSION=199209) failed: files 10a2.O and $srcdir/10a2.X differ" 1>&2
1237        (diff -c 10a2.O $srcdir/10a2.X) 2> /dev/null
1238        errors=`expr $errors + 1`;;
1239     2) $echo "Test 10a2(_POSIX2_VERSION=199209) may have failed." 1>&2
1240        $echo The command "cmp 10a2.O $srcdir/10a2.X" failed. 1>&2
1241        errors=`expr $errors + 1`;;
1242   esac
1243 fi
1244 test -s 10a2.E || rm -f 10a2.E
1245 _POSIX2_VERSION=199209 $xx -k 1.2,1.2 $srcdir/10e.I > 10e.O 2> 10e.E
1246 code=$?
1247 if test $code != 0; then
1248   $echo "Test 10e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1249   errors=`expr $errors + 1`
1250 else
1251   cmp 10e.O $srcdir/10e.X > /dev/null 2>&1
1252   case $? in
1253     0) if test "$VERBOSE"; then $echo "passed 10e(_POSIX2_VERSION=199209)"; fi;;
1254     1) $echo "Test 10e(_POSIX2_VERSION=199209) failed: files 10e.O and $srcdir/10e.X differ" 1>&2
1255        (diff -c 10e.O $srcdir/10e.X) 2> /dev/null
1256        errors=`expr $errors + 1`;;
1257     2) $echo "Test 10e(_POSIX2_VERSION=199209) may have failed." 1>&2
1258        $echo The command "cmp 10e.O $srcdir/10e.X" failed. 1>&2
1259        errors=`expr $errors + 1`;;
1260   esac
1261 fi
1262 test -s 10e.E || rm -f 10e.E
1263 _POSIX2_VERSION=199209 $xx -t : -k 1.3,1.3 $srcdir/10f.I > 10f.O 2> 10f.E
1264 code=$?
1265 if test $code != 0; then
1266   $echo "Test 10f(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1267   errors=`expr $errors + 1`
1268 else
1269   cmp 10f.O $srcdir/10f.X > /dev/null 2>&1
1270   case $? in
1271     0) if test "$VERBOSE"; then $echo "passed 10f(_POSIX2_VERSION=199209)"; fi;;
1272     1) $echo "Test 10f(_POSIX2_VERSION=199209) failed: files 10f.O and $srcdir/10f.X differ" 1>&2
1273        (diff -c 10f.O $srcdir/10f.X) 2> /dev/null
1274        errors=`expr $errors + 1`;;
1275     2) $echo "Test 10f(_POSIX2_VERSION=199209) may have failed." 1>&2
1276        $echo The command "cmp 10f.O $srcdir/10f.X" failed. 1>&2
1277        errors=`expr $errors + 1`;;
1278   esac
1279 fi
1280 test -s 10f.E || rm -f 10f.E
1281 _POSIX2_VERSION=199209 $xx -k 1.4,1.4 $srcdir/10g.I > 10g.O 2> 10g.E
1282 code=$?
1283 if test $code != 0; then
1284   $echo "Test 10g(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1285   errors=`expr $errors + 1`
1286 else
1287   cmp 10g.O $srcdir/10g.X > /dev/null 2>&1
1288   case $? in
1289     0) if test "$VERBOSE"; then $echo "passed 10g(_POSIX2_VERSION=199209)"; fi;;
1290     1) $echo "Test 10g(_POSIX2_VERSION=199209) failed: files 10g.O and $srcdir/10g.X differ" 1>&2
1291        (diff -c 10g.O $srcdir/10g.X) 2> /dev/null
1292        errors=`expr $errors + 1`;;
1293     2) $echo "Test 10g(_POSIX2_VERSION=199209) may have failed." 1>&2
1294        $echo The command "cmp 10g.O $srcdir/10g.X" failed. 1>&2
1295        errors=`expr $errors + 1`;;
1296   esac
1297 fi
1298 test -s 10g.E || rm -f 10g.E
1299 _POSIX2_VERSION=199209 $xx -t: -k1,1b -k2,2 $srcdir/11a.I > 11a.O 2> 11a.E
1300 code=$?
1301 if test $code != 0; then
1302   $echo "Test 11a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1303   errors=`expr $errors + 1`
1304 else
1305   cmp 11a.O $srcdir/11a.X > /dev/null 2>&1
1306   case $? in
1307     0) if test "$VERBOSE"; then $echo "passed 11a(_POSIX2_VERSION=199209)"; fi;;
1308     1) $echo "Test 11a(_POSIX2_VERSION=199209) failed: files 11a.O and $srcdir/11a.X differ" 1>&2
1309        (diff -c 11a.O $srcdir/11a.X) 2> /dev/null
1310        errors=`expr $errors + 1`;;
1311     2) $echo "Test 11a(_POSIX2_VERSION=199209) may have failed." 1>&2
1312        $echo The command "cmp 11a.O $srcdir/11a.X" failed. 1>&2
1313        errors=`expr $errors + 1`;;
1314   esac
1315 fi
1316 test -s 11a.E || rm -f 11a.E
1317 _POSIX2_VERSION=199209 $xx -t: -k1,1b -k2,2 $srcdir/11b.I > 11b.O 2> 11b.E
1318 code=$?
1319 if test $code != 0; then
1320   $echo "Test 11b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1321   errors=`expr $errors + 1`
1322 else
1323   cmp 11b.O $srcdir/11b.X > /dev/null 2>&1
1324   case $? in
1325     0) if test "$VERBOSE"; then $echo "passed 11b(_POSIX2_VERSION=199209)"; fi;;
1326     1) $echo "Test 11b(_POSIX2_VERSION=199209) failed: files 11b.O and $srcdir/11b.X differ" 1>&2
1327        (diff -c 11b.O $srcdir/11b.X) 2> /dev/null
1328        errors=`expr $errors + 1`;;
1329     2) $echo "Test 11b(_POSIX2_VERSION=199209) may have failed." 1>&2
1330        $echo The command "cmp 11b.O $srcdir/11b.X" failed. 1>&2
1331        errors=`expr $errors + 1`;;
1332   esac
1333 fi
1334 test -s 11b.E || rm -f 11b.E
1335 _POSIX2_VERSION=199209 $xx -t: -k2,2b -k3,3 $srcdir/11c.I > 11c.O 2> 11c.E
1336 code=$?
1337 if test $code != 0; then
1338   $echo "Test 11c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1339   errors=`expr $errors + 1`
1340 else
1341   cmp 11c.O $srcdir/11c.X > /dev/null 2>&1
1342   case $? in
1343     0) if test "$VERBOSE"; then $echo "passed 11c(_POSIX2_VERSION=199209)"; fi;;
1344     1) $echo "Test 11c(_POSIX2_VERSION=199209) failed: files 11c.O and $srcdir/11c.X differ" 1>&2
1345        (diff -c 11c.O $srcdir/11c.X) 2> /dev/null
1346        errors=`expr $errors + 1`;;
1347     2) $echo "Test 11c(_POSIX2_VERSION=199209) may have failed." 1>&2
1348        $echo The command "cmp 11c.O $srcdir/11c.X" failed. 1>&2
1349        errors=`expr $errors + 1`;;
1350   esac
1351 fi
1352 test -s 11c.E || rm -f 11c.E
1353 _POSIX2_VERSION=199209 $xx -t: -k2,2b -k3,3 $srcdir/11d.I > 11d.O 2> 11d.E
1354 code=$?
1355 if test $code != 0; then
1356   $echo "Test 11d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1357   errors=`expr $errors + 1`
1358 else
1359   cmp 11d.O $srcdir/11d.X > /dev/null 2>&1
1360   case $? in
1361     0) if test "$VERBOSE"; then $echo "passed 11d(_POSIX2_VERSION=199209)"; fi;;
1362     1) $echo "Test 11d(_POSIX2_VERSION=199209) failed: files 11d.O and $srcdir/11d.X differ" 1>&2
1363        (diff -c 11d.O $srcdir/11d.X) 2> /dev/null
1364        errors=`expr $errors + 1`;;
1365     2) $echo "Test 11d(_POSIX2_VERSION=199209) may have failed." 1>&2
1366        $echo The command "cmp 11d.O $srcdir/11d.X" failed. 1>&2
1367        errors=`expr $errors + 1`;;
1368   esac
1369 fi
1370 test -s 11d.E || rm -f 11d.E
1371 _POSIX2_VERSION=199209 $xx -n -t: +1 $srcdir/12a.I > 12a.O 2> 12a.E
1372 code=$?
1373 if test $code != 0; then
1374   $echo "Test 12a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1375   errors=`expr $errors + 1`
1376 else
1377   cmp 12a.O $srcdir/12a.X > /dev/null 2>&1
1378   case $? in
1379     0) if test "$VERBOSE"; then $echo "passed 12a(_POSIX2_VERSION=199209)"; fi;;
1380     1) $echo "Test 12a(_POSIX2_VERSION=199209) failed: files 12a.O and $srcdir/12a.X differ" 1>&2
1381        (diff -c 12a.O $srcdir/12a.X) 2> /dev/null
1382        errors=`expr $errors + 1`;;
1383     2) $echo "Test 12a(_POSIX2_VERSION=199209) may have failed." 1>&2
1384        $echo The command "cmp 12a.O $srcdir/12a.X" failed. 1>&2
1385        errors=`expr $errors + 1`;;
1386   esac
1387 fi
1388 test -s 12a.E || rm -f 12a.E
1389 _POSIX2_VERSION=199209 $xx -n -t: +1 $srcdir/12b.I > 12b.O 2> 12b.E
1390 code=$?
1391 if test $code != 0; then
1392   $echo "Test 12b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1393   errors=`expr $errors + 1`
1394 else
1395   cmp 12b.O $srcdir/12b.X > /dev/null 2>&1
1396   case $? in
1397     0) if test "$VERBOSE"; then $echo "passed 12b(_POSIX2_VERSION=199209)"; fi;;
1398     1) $echo "Test 12b(_POSIX2_VERSION=199209) failed: files 12b.O and $srcdir/12b.X differ" 1>&2
1399        (diff -c 12b.O $srcdir/12b.X) 2> /dev/null
1400        errors=`expr $errors + 1`;;
1401     2) $echo "Test 12b(_POSIX2_VERSION=199209) may have failed." 1>&2
1402        $echo The command "cmp 12b.O $srcdir/12b.X" failed. 1>&2
1403        errors=`expr $errors + 1`;;
1404   esac
1405 fi
1406 test -s 12b.E || rm -f 12b.E
1407 _POSIX2_VERSION=199209 $xx -n -t: +1 $srcdir/12c.I > 12c.O 2> 12c.E
1408 code=$?
1409 if test $code != 0; then
1410   $echo "Test 12c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1411   errors=`expr $errors + 1`
1412 else
1413   cmp 12c.O $srcdir/12c.X > /dev/null 2>&1
1414   case $? in
1415     0) if test "$VERBOSE"; then $echo "passed 12c(_POSIX2_VERSION=199209)"; fi;;
1416     1) $echo "Test 12c(_POSIX2_VERSION=199209) failed: files 12c.O and $srcdir/12c.X differ" 1>&2
1417        (diff -c 12c.O $srcdir/12c.X) 2> /dev/null
1418        errors=`expr $errors + 1`;;
1419     2) $echo "Test 12c(_POSIX2_VERSION=199209) may have failed." 1>&2
1420        $echo The command "cmp 12c.O $srcdir/12c.X" failed. 1>&2
1421        errors=`expr $errors + 1`;;
1422   esac
1423 fi
1424 test -s 12c.E || rm -f 12c.E
1425 _POSIX2_VERSION=199209 $xx -n -t: +1 $srcdir/12d.I > 12d.O 2> 12d.E
1426 code=$?
1427 if test $code != 0; then
1428   $echo "Test 12d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1429   errors=`expr $errors + 1`
1430 else
1431   cmp 12d.O $srcdir/12d.X > /dev/null 2>&1
1432   case $? in
1433     0) if test "$VERBOSE"; then $echo "passed 12d(_POSIX2_VERSION=199209)"; fi;;
1434     1) $echo "Test 12d(_POSIX2_VERSION=199209) failed: files 12d.O and $srcdir/12d.X differ" 1>&2
1435        (diff -c 12d.O $srcdir/12d.X) 2> /dev/null
1436        errors=`expr $errors + 1`;;
1437     2) $echo "Test 12d(_POSIX2_VERSION=199209) may have failed." 1>&2
1438        $echo The command "cmp 12d.O $srcdir/12d.X" failed. 1>&2
1439        errors=`expr $errors + 1`;;
1440   esac
1441 fi
1442 test -s 12d.E || rm -f 12d.E
1443 _POSIX2_VERSION=199209 $xx +0.1n $srcdir/13a.I > 13a.O 2> 13a.E
1444 code=$?
1445 if test $code != 0; then
1446   $echo "Test 13a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1447   errors=`expr $errors + 1`
1448 else
1449   cmp 13a.O $srcdir/13a.X > /dev/null 2>&1
1450   case $? in
1451     0) if test "$VERBOSE"; then $echo "passed 13a(_POSIX2_VERSION=199209)"; fi;;
1452     1) $echo "Test 13a(_POSIX2_VERSION=199209) failed: files 13a.O and $srcdir/13a.X differ" 1>&2
1453        (diff -c 13a.O $srcdir/13a.X) 2> /dev/null
1454        errors=`expr $errors + 1`;;
1455     2) $echo "Test 13a(_POSIX2_VERSION=199209) may have failed." 1>&2
1456        $echo The command "cmp 13a.O $srcdir/13a.X" failed. 1>&2
1457        errors=`expr $errors + 1`;;
1458   esac
1459 fi
1460 test -s 13a.E || rm -f 13a.E
1461 _POSIX2_VERSION=199209 $xx +0.1n $srcdir/13b.I > 13b.O 2> 13b.E
1462 code=$?
1463 if test $code != 0; then
1464   $echo "Test 13b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1465   errors=`expr $errors + 1`
1466 else
1467   cmp 13b.O $srcdir/13b.X > /dev/null 2>&1
1468   case $? in
1469     0) if test "$VERBOSE"; then $echo "passed 13b(_POSIX2_VERSION=199209)"; fi;;
1470     1) $echo "Test 13b(_POSIX2_VERSION=199209) failed: files 13b.O and $srcdir/13b.X differ" 1>&2
1471        (diff -c 13b.O $srcdir/13b.X) 2> /dev/null
1472        errors=`expr $errors + 1`;;
1473     2) $echo "Test 13b(_POSIX2_VERSION=199209) may have failed." 1>&2
1474        $echo The command "cmp 13b.O $srcdir/13b.X" failed. 1>&2
1475        errors=`expr $errors + 1`;;
1476   esac
1477 fi
1478 test -s 13b.E || rm -f 13b.E
1479 _POSIX2_VERSION=199209 $xx -d -u $srcdir/14a.I > 14a.O 2> 14a.E
1480 code=$?
1481 if test $code != 0; then
1482   $echo "Test 14a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1483   errors=`expr $errors + 1`
1484 else
1485   cmp 14a.O $srcdir/14a.X > /dev/null 2>&1
1486   case $? in
1487     0) if test "$VERBOSE"; then $echo "passed 14a(_POSIX2_VERSION=199209)"; fi;;
1488     1) $echo "Test 14a(_POSIX2_VERSION=199209) failed: files 14a.O and $srcdir/14a.X differ" 1>&2
1489        (diff -c 14a.O $srcdir/14a.X) 2> /dev/null
1490        errors=`expr $errors + 1`;;
1491     2) $echo "Test 14a(_POSIX2_VERSION=199209) may have failed." 1>&2
1492        $echo The command "cmp 14a.O $srcdir/14a.X" failed. 1>&2
1493        errors=`expr $errors + 1`;;
1494   esac
1495 fi
1496 test -s 14a.E || rm -f 14a.E
1497 _POSIX2_VERSION=199209 $xx -f -d -u $srcdir/14b.I > 14b.O 2> 14b.E
1498 code=$?
1499 if test $code != 0; then
1500   $echo "Test 14b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1501   errors=`expr $errors + 1`
1502 else
1503   cmp 14b.O $srcdir/14b.X > /dev/null 2>&1
1504   case $? in
1505     0) if test "$VERBOSE"; then $echo "passed 14b(_POSIX2_VERSION=199209)"; fi;;
1506     1) $echo "Test 14b(_POSIX2_VERSION=199209) failed: files 14b.O and $srcdir/14b.X differ" 1>&2
1507        (diff -c 14b.O $srcdir/14b.X) 2> /dev/null
1508        errors=`expr $errors + 1`;;
1509     2) $echo "Test 14b(_POSIX2_VERSION=199209) may have failed." 1>&2
1510        $echo The command "cmp 14b.O $srcdir/14b.X" failed. 1>&2
1511        errors=`expr $errors + 1`;;
1512   esac
1513 fi
1514 test -s 14b.E || rm -f 14b.E
1515 _POSIX2_VERSION=199209 $xx -i -u $srcdir/15a.I > 15a.O 2> 15a.E
1516 code=$?
1517 if test $code != 0; then
1518   $echo "Test 15a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1519   errors=`expr $errors + 1`
1520 else
1521   cmp 15a.O $srcdir/15a.X > /dev/null 2>&1
1522   case $? in
1523     0) if test "$VERBOSE"; then $echo "passed 15a(_POSIX2_VERSION=199209)"; fi;;
1524     1) $echo "Test 15a(_POSIX2_VERSION=199209) failed: files 15a.O and $srcdir/15a.X differ" 1>&2
1525        (diff -c 15a.O $srcdir/15a.X) 2> /dev/null
1526        errors=`expr $errors + 1`;;
1527     2) $echo "Test 15a(_POSIX2_VERSION=199209) may have failed." 1>&2
1528        $echo The command "cmp 15a.O $srcdir/15a.X" failed. 1>&2
1529        errors=`expr $errors + 1`;;
1530   esac
1531 fi
1532 test -s 15a.E || rm -f 15a.E
1533 _POSIX2_VERSION=199209 $xx -i -u $srcdir/15b.I > 15b.O 2> 15b.E
1534 code=$?
1535 if test $code != 0; then
1536   $echo "Test 15b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1537   errors=`expr $errors + 1`
1538 else
1539   cmp 15b.O $srcdir/15b.X > /dev/null 2>&1
1540   case $? in
1541     0) if test "$VERBOSE"; then $echo "passed 15b(_POSIX2_VERSION=199209)"; fi;;
1542     1) $echo "Test 15b(_POSIX2_VERSION=199209) failed: files 15b.O and $srcdir/15b.X differ" 1>&2
1543        (diff -c 15b.O $srcdir/15b.X) 2> /dev/null
1544        errors=`expr $errors + 1`;;
1545     2) $echo "Test 15b(_POSIX2_VERSION=199209) may have failed." 1>&2
1546        $echo The command "cmp 15b.O $srcdir/15b.X" failed. 1>&2
1547        errors=`expr $errors + 1`;;
1548   esac
1549 fi
1550 test -s 15b.E || rm -f 15b.E
1551 _POSIX2_VERSION=199209 $xx -i -u $srcdir/15c.I > 15c.O 2> 15c.E
1552 code=$?
1553 if test $code != 0; then
1554   $echo "Test 15c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1555   errors=`expr $errors + 1`
1556 else
1557   cmp 15c.O $srcdir/15c.X > /dev/null 2>&1
1558   case $? in
1559     0) if test "$VERBOSE"; then $echo "passed 15c(_POSIX2_VERSION=199209)"; fi;;
1560     1) $echo "Test 15c(_POSIX2_VERSION=199209) failed: files 15c.O and $srcdir/15c.X differ" 1>&2
1561        (diff -c 15c.O $srcdir/15c.X) 2> /dev/null
1562        errors=`expr $errors + 1`;;
1563     2) $echo "Test 15c(_POSIX2_VERSION=199209) may have failed." 1>&2
1564        $echo The command "cmp 15c.O $srcdir/15c.X" failed. 1>&2
1565        errors=`expr $errors + 1`;;
1566   esac
1567 fi
1568 test -s 15c.E || rm -f 15c.E
1569 _POSIX2_VERSION=199209 $xx -i -u $srcdir/15d.I > 15d.O 2> 15d.E
1570 code=$?
1571 if test $code != 0; then
1572   $echo "Test 15d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1573   errors=`expr $errors + 1`
1574 else
1575   cmp 15d.O $srcdir/15d.X > /dev/null 2>&1
1576   case $? in
1577     0) if test "$VERBOSE"; then $echo "passed 15d(_POSIX2_VERSION=199209)"; fi;;
1578     1) $echo "Test 15d(_POSIX2_VERSION=199209) failed: files 15d.O and $srcdir/15d.X differ" 1>&2
1579        (diff -c 15d.O $srcdir/15d.X) 2> /dev/null
1580        errors=`expr $errors + 1`;;
1581     2) $echo "Test 15d(_POSIX2_VERSION=199209) may have failed." 1>&2
1582        $echo The command "cmp 15d.O $srcdir/15d.X" failed. 1>&2
1583        errors=`expr $errors + 1`;;
1584   esac
1585 fi
1586 test -s 15d.E || rm -f 15d.E
1587 _POSIX2_VERSION=199209 $xx -i -u $srcdir/15e.I > 15e.O 2> 15e.E
1588 code=$?
1589 if test $code != 0; then
1590   $echo "Test 15e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1591   errors=`expr $errors + 1`
1592 else
1593   cmp 15e.O $srcdir/15e.X > /dev/null 2>&1
1594   case $? in
1595     0) if test "$VERBOSE"; then $echo "passed 15e(_POSIX2_VERSION=199209)"; fi;;
1596     1) $echo "Test 15e(_POSIX2_VERSION=199209) failed: files 15e.O and $srcdir/15e.X differ" 1>&2
1597        (diff -c 15e.O $srcdir/15e.X) 2> /dev/null
1598        errors=`expr $errors + 1`;;
1599     2) $echo "Test 15e(_POSIX2_VERSION=199209) may have failed." 1>&2
1600        $echo The command "cmp 15e.O $srcdir/15e.X" failed. 1>&2
1601        errors=`expr $errors + 1`;;
1602   esac
1603 fi
1604 test -s 15e.E || rm -f 15e.E
1605 _POSIX2_VERSION=199209 $xx -f $srcdir/16a.I > 16a.O 2> 16a.E
1606 code=$?
1607 if test $code != 0; then
1608   $echo "Test 16a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1609   errors=`expr $errors + 1`
1610 else
1611   cmp 16a.O $srcdir/16a.X > /dev/null 2>&1
1612   case $? in
1613     0) if test "$VERBOSE"; then $echo "passed 16a(_POSIX2_VERSION=199209)"; fi;;
1614     1) $echo "Test 16a(_POSIX2_VERSION=199209) failed: files 16a.O and $srcdir/16a.X differ" 1>&2
1615        (diff -c 16a.O $srcdir/16a.X) 2> /dev/null
1616        errors=`expr $errors + 1`;;
1617     2) $echo "Test 16a(_POSIX2_VERSION=199209) may have failed." 1>&2
1618        $echo The command "cmp 16a.O $srcdir/16a.X" failed. 1>&2
1619        errors=`expr $errors + 1`;;
1620   esac
1621 fi
1622 test -s 16a.E || rm -f 16a.E
1623 _POSIX2_VERSION=199209 $xx -c $srcdir/17.I > 17.O 2> 17.E
1624 code=$?
1625 if test $code != 0; then
1626   $echo "Test 17(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1627   errors=`expr $errors + 1`
1628 else
1629   cmp 17.O $srcdir/17.X > /dev/null 2>&1
1630   case $? in
1631     0) if test "$VERBOSE"; then $echo "passed 17(_POSIX2_VERSION=199209)"; fi;;
1632     1) $echo "Test 17(_POSIX2_VERSION=199209) failed: files 17.O and $srcdir/17.X differ" 1>&2
1633        (diff -c 17.O $srcdir/17.X) 2> /dev/null
1634        errors=`expr $errors + 1`;;
1635     2) $echo "Test 17(_POSIX2_VERSION=199209) may have failed." 1>&2
1636        $echo The command "cmp 17.O $srcdir/17.X" failed. 1>&2
1637        errors=`expr $errors + 1`;;
1638   esac
1639 fi
1640 test -s 17.E || rm -f 17.E
1641 _POSIX2_VERSION=199209 $xx -k1.1,1.2n $srcdir/18a.I > 18a.O 2> 18a.E
1642 code=$?
1643 if test $code != 0; then
1644   $echo "Test 18a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1645   errors=`expr $errors + 1`
1646 else
1647   cmp 18a.O $srcdir/18a.X > /dev/null 2>&1
1648   case $? in
1649     0) if test "$VERBOSE"; then $echo "passed 18a(_POSIX2_VERSION=199209)"; fi;;
1650     1) $echo "Test 18a(_POSIX2_VERSION=199209) failed: files 18a.O and $srcdir/18a.X differ" 1>&2
1651        (diff -c 18a.O $srcdir/18a.X) 2> /dev/null
1652        errors=`expr $errors + 1`;;
1653     2) $echo "Test 18a(_POSIX2_VERSION=199209) may have failed." 1>&2
1654        $echo The command "cmp 18a.O $srcdir/18a.X" failed. 1>&2
1655        errors=`expr $errors + 1`;;
1656   esac
1657 fi
1658 test -s 18a.E || rm -f 18a.E
1659 _POSIX2_VERSION=199209 $xx -b -k1.1,1.2n $srcdir/18b.I > 18b.O 2> 18b.E
1660 code=$?
1661 if test $code != 0; then
1662   $echo "Test 18b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1663   errors=`expr $errors + 1`
1664 else
1665   cmp 18b.O $srcdir/18b.X > /dev/null 2>&1
1666   case $? in
1667     0) if test "$VERBOSE"; then $echo "passed 18b(_POSIX2_VERSION=199209)"; fi;;
1668     1) $echo "Test 18b(_POSIX2_VERSION=199209) failed: files 18b.O and $srcdir/18b.X differ" 1>&2
1669        (diff -c 18b.O $srcdir/18b.X) 2> /dev/null
1670        errors=`expr $errors + 1`;;
1671     2) $echo "Test 18b(_POSIX2_VERSION=199209) may have failed." 1>&2
1672        $echo The command "cmp 18b.O $srcdir/18b.X" failed. 1>&2
1673        errors=`expr $errors + 1`;;
1674   esac
1675 fi
1676 test -s 18b.E || rm -f 18b.E
1677 _POSIX2_VERSION=199209 $xx -k1.1,1.2nb $srcdir/18c.I > 18c.O 2> 18c.E
1678 code=$?
1679 if test $code != 0; then
1680   $echo "Test 18c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1681   errors=`expr $errors + 1`
1682 else
1683   cmp 18c.O $srcdir/18c.X > /dev/null 2>&1
1684   case $? in
1685     0) if test "$VERBOSE"; then $echo "passed 18c(_POSIX2_VERSION=199209)"; fi;;
1686     1) $echo "Test 18c(_POSIX2_VERSION=199209) failed: files 18c.O and $srcdir/18c.X differ" 1>&2
1687        (diff -c 18c.O $srcdir/18c.X) 2> /dev/null
1688        errors=`expr $errors + 1`;;
1689     2) $echo "Test 18c(_POSIX2_VERSION=199209) may have failed." 1>&2
1690        $echo The command "cmp 18c.O $srcdir/18c.X" failed. 1>&2
1691        errors=`expr $errors + 1`;;
1692   esac
1693 fi
1694 test -s 18c.E || rm -f 18c.E
1695 _POSIX2_VERSION=199209 $xx -k1.1b,1.2n $srcdir/18d.I > 18d.O 2> 18d.E
1696 code=$?
1697 if test $code != 0; then
1698   $echo "Test 18d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1699   errors=`expr $errors + 1`
1700 else
1701   cmp 18d.O $srcdir/18d.X > /dev/null 2>&1
1702   case $? in
1703     0) if test "$VERBOSE"; then $echo "passed 18d(_POSIX2_VERSION=199209)"; fi;;
1704     1) $echo "Test 18d(_POSIX2_VERSION=199209) failed: files 18d.O and $srcdir/18d.X differ" 1>&2
1705        (diff -c 18d.O $srcdir/18d.X) 2> /dev/null
1706        errors=`expr $errors + 1`;;
1707     2) $echo "Test 18d(_POSIX2_VERSION=199209) may have failed." 1>&2
1708        $echo The command "cmp 18d.O $srcdir/18d.X" failed. 1>&2
1709        errors=`expr $errors + 1`;;
1710   esac
1711 fi
1712 test -s 18d.E || rm -f 18d.E
1713 _POSIX2_VERSION=199209 $xx -nb -k1.1,1.2 $srcdir/18e.I > 18e.O 2> 18e.E
1714 code=$?
1715 if test $code != 0; then
1716   $echo "Test 18e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1717   errors=`expr $errors + 1`
1718 else
1719   cmp 18e.O $srcdir/18e.X > /dev/null 2>&1
1720   case $? in
1721     0) if test "$VERBOSE"; then $echo "passed 18e(_POSIX2_VERSION=199209)"; fi;;
1722     1) $echo "Test 18e(_POSIX2_VERSION=199209) failed: files 18e.O and $srcdir/18e.X differ" 1>&2
1723        (diff -c 18e.O $srcdir/18e.X) 2> /dev/null
1724        errors=`expr $errors + 1`;;
1725     2) $echo "Test 18e(_POSIX2_VERSION=199209) may have failed." 1>&2
1726        $echo The command "cmp 18e.O $srcdir/18e.X" failed. 1>&2
1727        errors=`expr $errors + 1`;;
1728   esac
1729 fi
1730 test -s 18e.E || rm -f 18e.E
1731 _POSIX2_VERSION=199209 $xx +0 +1nr $srcdir/19a.I > 19a.O 2> 19a.E
1732 code=$?
1733 if test $code != 0; then
1734   $echo "Test 19a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1735   errors=`expr $errors + 1`
1736 else
1737   cmp 19a.O $srcdir/19a.X > /dev/null 2>&1
1738   case $? in
1739     0) if test "$VERBOSE"; then $echo "passed 19a(_POSIX2_VERSION=199209)"; fi;;
1740     1) $echo "Test 19a(_POSIX2_VERSION=199209) failed: files 19a.O and $srcdir/19a.X differ" 1>&2
1741        (diff -c 19a.O $srcdir/19a.X) 2> /dev/null
1742        errors=`expr $errors + 1`;;
1743     2) $echo "Test 19a(_POSIX2_VERSION=199209) may have failed." 1>&2
1744        $echo The command "cmp 19a.O $srcdir/19a.X" failed. 1>&2
1745        errors=`expr $errors + 1`;;
1746   esac
1747 fi
1748 test -s 19a.E || rm -f 19a.E
1749 _POSIX2_VERSION=199209 $xx -k1,1 -k2nr $srcdir/19b.I > 19b.O 2> 19b.E
1750 code=$?
1751 if test $code != 0; then
1752   $echo "Test 19b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1753   errors=`expr $errors + 1`
1754 else
1755   cmp 19b.O $srcdir/19b.X > /dev/null 2>&1
1756   case $? in
1757     0) if test "$VERBOSE"; then $echo "passed 19b(_POSIX2_VERSION=199209)"; fi;;
1758     1) $echo "Test 19b(_POSIX2_VERSION=199209) failed: files 19b.O and $srcdir/19b.X differ" 1>&2
1759        (diff -c 19b.O $srcdir/19b.X) 2> /dev/null
1760        errors=`expr $errors + 1`;;
1761     2) $echo "Test 19b(_POSIX2_VERSION=199209) may have failed." 1>&2
1762        $echo The command "cmp 19b.O $srcdir/19b.X" failed. 1>&2
1763        errors=`expr $errors + 1`;;
1764   esac
1765 fi
1766 test -s 19b.E || rm -f 19b.E
1767 _POSIX2_VERSION=199209 $xx  $srcdir/20a.I > 20a.O 2> 20a.E
1768 code=$?
1769 if test $code != 0; then
1770   $echo "Test 20a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1771   errors=`expr $errors + 1`
1772 else
1773   cmp 20a.O $srcdir/20a.X > /dev/null 2>&1
1774   case $? in
1775     0) if test "$VERBOSE"; then $echo "passed 20a(_POSIX2_VERSION=199209)"; fi;;
1776     1) $echo "Test 20a(_POSIX2_VERSION=199209) failed: files 20a.O and $srcdir/20a.X differ" 1>&2
1777        (diff -c 20a.O $srcdir/20a.X) 2> /dev/null
1778        errors=`expr $errors + 1`;;
1779     2) $echo "Test 20a(_POSIX2_VERSION=199209) may have failed." 1>&2
1780        $echo The command "cmp 20a.O $srcdir/20a.X" failed. 1>&2
1781        errors=`expr $errors + 1`;;
1782   esac
1783 fi
1784 test -s 20a.E || rm -f 20a.E
1785 _POSIX2_VERSION=199209 $xx  $srcdir/21a.I > 21a.O 2> 21a.E
1786 code=$?
1787 if test $code != 0; then
1788   $echo "Test 21a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1789   errors=`expr $errors + 1`
1790 else
1791   cmp 21a.O $srcdir/21a.X > /dev/null 2>&1
1792   case $? in
1793     0) if test "$VERBOSE"; then $echo "passed 21a(_POSIX2_VERSION=199209)"; fi;;
1794     1) $echo "Test 21a(_POSIX2_VERSION=199209) failed: files 21a.O and $srcdir/21a.X differ" 1>&2
1795        (diff -c 21a.O $srcdir/21a.X) 2> /dev/null
1796        errors=`expr $errors + 1`;;
1797     2) $echo "Test 21a(_POSIX2_VERSION=199209) may have failed." 1>&2
1798        $echo The command "cmp 21a.O $srcdir/21a.X" failed. 1>&2
1799        errors=`expr $errors + 1`;;
1800   esac
1801 fi
1802 test -s 21a.E || rm -f 21a.E
1803 _POSIX2_VERSION=199209 $xx -f $srcdir/21b.I > 21b.O 2> 21b.E
1804 code=$?
1805 if test $code != 0; then
1806   $echo "Test 21b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1807   errors=`expr $errors + 1`
1808 else
1809   cmp 21b.O $srcdir/21b.X > /dev/null 2>&1
1810   case $? in
1811     0) if test "$VERBOSE"; then $echo "passed 21b(_POSIX2_VERSION=199209)"; fi;;
1812     1) $echo "Test 21b(_POSIX2_VERSION=199209) failed: files 21b.O and $srcdir/21b.X differ" 1>&2
1813        (diff -c 21b.O $srcdir/21b.X) 2> /dev/null
1814        errors=`expr $errors + 1`;;
1815     2) $echo "Test 21b(_POSIX2_VERSION=199209) may have failed." 1>&2
1816        $echo The command "cmp 21b.O $srcdir/21b.X" failed. 1>&2
1817        errors=`expr $errors + 1`;;
1818   esac
1819 fi
1820 test -s 21b.E || rm -f 21b.E
1821 _POSIX2_VERSION=199209 $xx -f $srcdir/21c.I > 21c.O 2> 21c.E
1822 code=$?
1823 if test $code != 0; then
1824   $echo "Test 21c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1825   errors=`expr $errors + 1`
1826 else
1827   cmp 21c.O $srcdir/21c.X > /dev/null 2>&1
1828   case $? in
1829     0) if test "$VERBOSE"; then $echo "passed 21c(_POSIX2_VERSION=199209)"; fi;;
1830     1) $echo "Test 21c(_POSIX2_VERSION=199209) failed: files 21c.O and $srcdir/21c.X differ" 1>&2
1831        (diff -c 21c.O $srcdir/21c.X) 2> /dev/null
1832        errors=`expr $errors + 1`;;
1833     2) $echo "Test 21c(_POSIX2_VERSION=199209) may have failed." 1>&2
1834        $echo The command "cmp 21c.O $srcdir/21c.X" failed. 1>&2
1835        errors=`expr $errors + 1`;;
1836   esac
1837 fi
1838 test -s 21c.E || rm -f 21c.E
1839 _POSIX2_VERSION=199209 $xx -f $srcdir/21d.I > 21d.O 2> 21d.E
1840 code=$?
1841 if test $code != 0; then
1842   $echo "Test 21d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1843   errors=`expr $errors + 1`
1844 else
1845   cmp 21d.O $srcdir/21d.X > /dev/null 2>&1
1846   case $? in
1847     0) if test "$VERBOSE"; then $echo "passed 21d(_POSIX2_VERSION=199209)"; fi;;
1848     1) $echo "Test 21d(_POSIX2_VERSION=199209) failed: files 21d.O and $srcdir/21d.X differ" 1>&2
1849        (diff -c 21d.O $srcdir/21d.X) 2> /dev/null
1850        errors=`expr $errors + 1`;;
1851     2) $echo "Test 21d(_POSIX2_VERSION=199209) may have failed." 1>&2
1852        $echo The command "cmp 21d.O $srcdir/21d.X" failed. 1>&2
1853        errors=`expr $errors + 1`;;
1854   esac
1855 fi
1856 test -s 21d.E || rm -f 21d.E
1857 _POSIX2_VERSION=199209 $xx -f $srcdir/21e.I > 21e.O 2> 21e.E
1858 code=$?
1859 if test $code != 0; then
1860   $echo "Test 21e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1861   errors=`expr $errors + 1`
1862 else
1863   cmp 21e.O $srcdir/21e.X > /dev/null 2>&1
1864   case $? in
1865     0) if test "$VERBOSE"; then $echo "passed 21e(_POSIX2_VERSION=199209)"; fi;;
1866     1) $echo "Test 21e(_POSIX2_VERSION=199209) failed: files 21e.O and $srcdir/21e.X differ" 1>&2
1867        (diff -c 21e.O $srcdir/21e.X) 2> /dev/null
1868        errors=`expr $errors + 1`;;
1869     2) $echo "Test 21e(_POSIX2_VERSION=199209) may have failed." 1>&2
1870        $echo The command "cmp 21e.O $srcdir/21e.X" failed. 1>&2
1871        errors=`expr $errors + 1`;;
1872   esac
1873 fi
1874 test -s 21e.E || rm -f 21e.E
1875 _POSIX2_VERSION=199209 $xx -fs $srcdir/21f.I > 21f.O 2> 21f.E
1876 code=$?
1877 if test $code != 0; then
1878   $echo "Test 21f(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1879   errors=`expr $errors + 1`
1880 else
1881   cmp 21f.O $srcdir/21f.X > /dev/null 2>&1
1882   case $? in
1883     0) if test "$VERBOSE"; then $echo "passed 21f(_POSIX2_VERSION=199209)"; fi;;
1884     1) $echo "Test 21f(_POSIX2_VERSION=199209) failed: files 21f.O and $srcdir/21f.X differ" 1>&2
1885        (diff -c 21f.O $srcdir/21f.X) 2> /dev/null
1886        errors=`expr $errors + 1`;;
1887     2) $echo "Test 21f(_POSIX2_VERSION=199209) may have failed." 1>&2
1888        $echo The command "cmp 21f.O $srcdir/21f.X" failed. 1>&2
1889        errors=`expr $errors + 1`;;
1890   esac
1891 fi
1892 test -s 21f.E || rm -f 21f.E
1893 _POSIX2_VERSION=199209 $xx -fu $srcdir/21g.I > 21g.O 2> 21g.E
1894 code=$?
1895 if test $code != 0; then
1896   $echo "Test 21g(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1897   errors=`expr $errors + 1`
1898 else
1899   cmp 21g.O $srcdir/21g.X > /dev/null 2>&1
1900   case $? in
1901     0) if test "$VERBOSE"; then $echo "passed 21g(_POSIX2_VERSION=199209)"; fi;;
1902     1) $echo "Test 21g(_POSIX2_VERSION=199209) failed: files 21g.O and $srcdir/21g.X differ" 1>&2
1903        (diff -c 21g.O $srcdir/21g.X) 2> /dev/null
1904        errors=`expr $errors + 1`;;
1905     2) $echo "Test 21g(_POSIX2_VERSION=199209) may have failed." 1>&2
1906        $echo The command "cmp 21g.O $srcdir/21g.X" failed. 1>&2
1907        errors=`expr $errors + 1`;;
1908   esac
1909 fi
1910 test -s 21g.E || rm -f 21g.E
1911 _POSIX2_VERSION=199209 $xx -k 2,2fd -k 1,1r $srcdir/22a.I > 22a.O 2> 22a.E
1912 code=$?
1913 if test $code != 0; then
1914   $echo "Test 22a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1915   errors=`expr $errors + 1`
1916 else
1917   cmp 22a.O $srcdir/22a.X > /dev/null 2>&1
1918   case $? in
1919     0) if test "$VERBOSE"; then $echo "passed 22a(_POSIX2_VERSION=199209)"; fi;;
1920     1) $echo "Test 22a(_POSIX2_VERSION=199209) failed: files 22a.O and $srcdir/22a.X differ" 1>&2
1921        (diff -c 22a.O $srcdir/22a.X) 2> /dev/null
1922        errors=`expr $errors + 1`;;
1923     2) $echo "Test 22a(_POSIX2_VERSION=199209) may have failed." 1>&2
1924        $echo The command "cmp 22a.O $srcdir/22a.X" failed. 1>&2
1925        errors=`expr $errors + 1`;;
1926   esac
1927 fi
1928 test -s 22a.E || rm -f 22a.E
1929 _POSIX2_VERSION=199209 $xx -k 2,2d  -k 1,1r $srcdir/22b.I > 22b.O 2> 22b.E
1930 code=$?
1931 if test $code != 0; then
1932   $echo "Test 22b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
1933   errors=`expr $errors + 1`
1934 else
1935   cmp 22b.O $srcdir/22b.X > /dev/null 2>&1
1936   case $? in
1937     0) if test "$VERBOSE"; then $echo "passed 22b(_POSIX2_VERSION=199209)"; fi;;
1938     1) $echo "Test 22b(_POSIX2_VERSION=199209) failed: files 22b.O and $srcdir/22b.X differ" 1>&2
1939        (diff -c 22b.O $srcdir/22b.X) 2> /dev/null
1940        errors=`expr $errors + 1`;;
1941     2) $echo "Test 22b(_POSIX2_VERSION=199209) may have failed." 1>&2
1942        $echo The command "cmp 22b.O $srcdir/22b.X" failed. 1>&2
1943        errors=`expr $errors + 1`;;
1944   esac
1945 fi
1946 test -s 22b.E || rm -f 22b.E
1947 _POSIX2_VERSION=199209 $xx no-file  > no-file1.O 2> no-file1.E
1948 code=$?
1949 if test $code != 2; then
1950   $echo "Test no-file1(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
1951   errors=`expr $errors + 1`
1952 else
1953   cmp no-file1.O $srcdir/no-file1.X > /dev/null 2>&1
1954   case $? in
1955     0) if test "$VERBOSE"; then $echo "passed no-file1(_POSIX2_VERSION=199209)"; fi;;
1956     1) $echo "Test no-file1(_POSIX2_VERSION=199209) failed: files no-file1.O and $srcdir/no-file1.X differ" 1>&2
1957        (diff -c no-file1.O $srcdir/no-file1.X) 2> /dev/null
1958        errors=`expr $errors + 1`;;
1959     2) $echo "Test no-file1(_POSIX2_VERSION=199209) may have failed." 1>&2
1960        $echo The command "cmp no-file1.O $srcdir/no-file1.X" failed. 1>&2
1961        errors=`expr $errors + 1`;;
1962   esac
1963 fi
1964 test -s no-file1.E || rm -f no-file1.E
1965 _POSIX2_VERSION=199209 $xx -o no-such-file no-such-file  > o-no-file1.O 2> o-no-file1.E
1966 code=$?
1967 if test $code != 2; then
1968   $echo "Test o-no-file1(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
1969   errors=`expr $errors + 1`
1970 else
1971   cmp o-no-file1.O $srcdir/o-no-file1.X > /dev/null 2>&1
1972   case $? in
1973     0) if test "$VERBOSE"; then $echo "passed o-no-file1(_POSIX2_VERSION=199209)"; fi;;
1974     1) $echo "Test o-no-file1(_POSIX2_VERSION=199209) failed: files o-no-file1.O and $srcdir/o-no-file1.X differ" 1>&2
1975        (diff -c o-no-file1.O $srcdir/o-no-file1.X) 2> /dev/null
1976        errors=`expr $errors + 1`;;
1977     2) $echo "Test o-no-file1(_POSIX2_VERSION=199209) may have failed." 1>&2
1978        $echo The command "cmp o-no-file1.O $srcdir/o-no-file1.X" failed. 1>&2
1979        errors=`expr $errors + 1`;;
1980   esac
1981 fi
1982 test -s o-no-file1.E || rm -f o-no-file1.E
1983 _POSIX2_VERSION=199209 $xx -o no/such/file /dev/null  > create-empty.O 2> create-empty.E
1984 code=$?
1985 if test $code != 2; then
1986   $echo "Test create-empty(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
1987   errors=`expr $errors + 1`
1988 else
1989   cmp create-empty.O $srcdir/create-empty.X > /dev/null 2>&1
1990   case $? in
1991     0) if test "$VERBOSE"; then $echo "passed create-empty(_POSIX2_VERSION=199209)"; fi;;
1992     1) $echo "Test create-empty(_POSIX2_VERSION=199209) failed: files create-empty.O and $srcdir/create-empty.X differ" 1>&2
1993        (diff -c create-empty.O $srcdir/create-empty.X) 2> /dev/null
1994        errors=`expr $errors + 1`;;
1995     2) $echo "Test create-empty(_POSIX2_VERSION=199209) may have failed." 1>&2
1996        $echo The command "cmp create-empty.O $srcdir/create-empty.X" failed. 1>&2
1997        errors=`expr $errors + 1`;;
1998   esac
1999 fi
2000 test -s create-empty.E || rm -f create-empty.E
2001 _POSIX2_VERSION=199209 $xx -n $srcdir/neg-nls.I > neg-nls.O 2> neg-nls.E
2002 code=$?
2003 if test $code != 0; then
2004   $echo "Test neg-nls(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
2005   errors=`expr $errors + 1`
2006 else
2007   cmp neg-nls.O $srcdir/neg-nls.X > /dev/null 2>&1
2008   case $? in
2009     0) if test "$VERBOSE"; then $echo "passed neg-nls(_POSIX2_VERSION=199209)"; fi;;
2010     1) $echo "Test neg-nls(_POSIX2_VERSION=199209) failed: files neg-nls.O and $srcdir/neg-nls.X differ" 1>&2
2011        (diff -c neg-nls.O $srcdir/neg-nls.X) 2> /dev/null
2012        errors=`expr $errors + 1`;;
2013     2) $echo "Test neg-nls(_POSIX2_VERSION=199209) may have failed." 1>&2
2014        $echo The command "cmp neg-nls.O $srcdir/neg-nls.X" failed. 1>&2
2015        errors=`expr $errors + 1`;;
2016   esac
2017 fi
2018 test -s neg-nls.E || rm -f neg-nls.E
2019 _POSIX2_VERSION=199209 $xx  $srcdir/nul-nls.I > nul-nls.O 2> nul-nls.E
2020 code=$?
2021 if test $code != 0; then
2022   $echo "Test nul-nls(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
2023   errors=`expr $errors + 1`
2024 else
2025   cmp nul-nls.O $srcdir/nul-nls.X > /dev/null 2>&1
2026   case $? in
2027     0) if test "$VERBOSE"; then $echo "passed nul-nls(_POSIX2_VERSION=199209)"; fi;;
2028     1) $echo "Test nul-nls(_POSIX2_VERSION=199209) failed: files nul-nls.O and $srcdir/nul-nls.X differ" 1>&2
2029        (diff -c nul-nls.O $srcdir/nul-nls.X) 2> /dev/null
2030        errors=`expr $errors + 1`;;
2031     2) $echo "Test nul-nls(_POSIX2_VERSION=199209) may have failed." 1>&2
2032        $echo The command "cmp nul-nls.O $srcdir/nul-nls.X" failed. 1>&2
2033        errors=`expr $errors + 1`;;
2034   esac
2035 fi
2036 test -s nul-nls.E || rm -f nul-nls.E
2037 _POSIX2_VERSION=199209 $xx  $srcdir/use-nl.I > use-nl.O 2> use-nl.E
2038 code=$?
2039 if test $code != 0; then
2040   $echo "Test use-nl(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
2041   errors=`expr $errors + 1`
2042 else
2043   cmp use-nl.O $srcdir/use-nl.X > /dev/null 2>&1
2044   case $? in
2045     0) if test "$VERBOSE"; then $echo "passed use-nl(_POSIX2_VERSION=199209)"; fi;;
2046     1) $echo "Test use-nl(_POSIX2_VERSION=199209) failed: files use-nl.O and $srcdir/use-nl.X differ" 1>&2
2047        (diff -c use-nl.O $srcdir/use-nl.X) 2> /dev/null
2048        errors=`expr $errors + 1`;;
2049     2) $echo "Test use-nl(_POSIX2_VERSION=199209) may have failed." 1>&2
2050        $echo The command "cmp use-nl.O $srcdir/use-nl.X" failed. 1>&2
2051        errors=`expr $errors + 1`;;
2052   esac
2053 fi
2054 test -s use-nl.E || rm -f use-nl.E
2055 _POSIX2_VERSION=199209 $xx -o x -o y $srcdir/o2.I > o2.O 2> o2.E
2056 code=$?
2057 if test $code != 2; then
2058   $echo "Test o2(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
2059   errors=`expr $errors + 1`
2060 else
2061   cmp o2.O $srcdir/o2.X > /dev/null 2>&1
2062   case $? in
2063     0) if test "$VERBOSE"; then $echo "passed o2(_POSIX2_VERSION=199209)"; fi;;
2064     1) $echo "Test o2(_POSIX2_VERSION=199209) failed: files o2.O and $srcdir/o2.X differ" 1>&2
2065        (diff -c o2.O $srcdir/o2.X) 2> /dev/null
2066        errors=`expr $errors + 1`;;
2067     2) $echo "Test o2(_POSIX2_VERSION=199209) may have failed." 1>&2
2068        $echo The command "cmp o2.O $srcdir/o2.X" failed. 1>&2
2069        errors=`expr $errors + 1`;;
2070   esac
2071 fi
2072 test -s o2.E || rm -f o2.E
2073 _POSIX2_VERSION=199209 $xx -in $srcdir/incompat1.I > incompat1.O 2> incompat1.E
2074 code=$?
2075 if test $code != 2; then
2076   $echo "Test incompat1(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
2077   errors=`expr $errors + 1`
2078 else
2079   cmp incompat1.O $srcdir/incompat1.X > /dev/null 2>&1
2080   case $? in
2081     0) if test "$VERBOSE"; then $echo "passed incompat1(_POSIX2_VERSION=199209)"; fi;;
2082     1) $echo "Test incompat1(_POSIX2_VERSION=199209) failed: files incompat1.O and $srcdir/incompat1.X differ" 1>&2
2083        (diff -c incompat1.O $srcdir/incompat1.X) 2> /dev/null
2084        errors=`expr $errors + 1`;;
2085     2) $echo "Test incompat1(_POSIX2_VERSION=199209) may have failed." 1>&2
2086        $echo The command "cmp incompat1.O $srcdir/incompat1.X" failed. 1>&2
2087        errors=`expr $errors + 1`;;
2088   esac
2089 fi
2090 test -s incompat1.E || rm -f incompat1.E
2091 _POSIX2_VERSION=199209 $xx -fR $srcdir/incompat2.I > incompat2.O 2> incompat2.E
2092 code=$?
2093 if test $code != 2; then
2094   $echo "Test incompat2(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
2095   errors=`expr $errors + 1`
2096 else
2097   cmp incompat2.O $srcdir/incompat2.X > /dev/null 2>&1
2098   case $? in
2099     0) if test "$VERBOSE"; then $echo "passed incompat2(_POSIX2_VERSION=199209)"; fi;;
2100     1) $echo "Test incompat2(_POSIX2_VERSION=199209) failed: files incompat2.O and $srcdir/incompat2.X differ" 1>&2
2101        (diff -c incompat2.O $srcdir/incompat2.X) 2> /dev/null
2102        errors=`expr $errors + 1`;;
2103     2) $echo "Test incompat2(_POSIX2_VERSION=199209) may have failed." 1>&2
2104        $echo The command "cmp incompat2.O $srcdir/incompat2.X" failed. 1>&2
2105        errors=`expr $errors + 1`;;
2106   esac
2107 fi
2108 test -s incompat2.E || rm -f incompat2.E
2109 _POSIX2_VERSION=199209 $xx -dfgiMnR $srcdir/incompat3.I > incompat3.O 2> incompat3.E
2110 code=$?
2111 if test $code != 2; then
2112   $echo "Test incompat3(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
2113   errors=`expr $errors + 1`
2114 else
2115   cmp incompat3.O $srcdir/incompat3.X > /dev/null 2>&1
2116   case $? in
2117     0) if test "$VERBOSE"; then $echo "passed incompat3(_POSIX2_VERSION=199209)"; fi;;
2118     1) $echo "Test incompat3(_POSIX2_VERSION=199209) failed: files incompat3.O and $srcdir/incompat3.X differ" 1>&2
2119        (diff -c incompat3.O $srcdir/incompat3.X) 2> /dev/null
2120        errors=`expr $errors + 1`;;
2121     2) $echo "Test incompat3(_POSIX2_VERSION=199209) may have failed." 1>&2
2122        $echo The command "cmp incompat3.O $srcdir/incompat3.X" failed. 1>&2
2123        errors=`expr $errors + 1`;;
2124   esac
2125 fi
2126 test -s incompat3.E || rm -f incompat3.E
2127 _POSIX2_VERSION=199209 $xx -c -o /dev/null $srcdir/incompat4.I > incompat4.O 2> incompat4.E
2128 code=$?
2129 if test $code != 2; then
2130   $echo "Test incompat4(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
2131   errors=`expr $errors + 1`
2132 else
2133   cmp incompat4.O $srcdir/incompat4.X > /dev/null 2>&1
2134   case $? in
2135     0) if test "$VERBOSE"; then $echo "passed incompat4(_POSIX2_VERSION=199209)"; fi;;
2136     1) $echo "Test incompat4(_POSIX2_VERSION=199209) failed: files incompat4.O and $srcdir/incompat4.X differ" 1>&2
2137        (diff -c incompat4.O $srcdir/incompat4.X) 2> /dev/null
2138        errors=`expr $errors + 1`;;
2139     2) $echo "Test incompat4(_POSIX2_VERSION=199209) may have failed." 1>&2
2140        $echo The command "cmp incompat4.O $srcdir/incompat4.X" failed. 1>&2
2141        errors=`expr $errors + 1`;;
2142   esac
2143 fi
2144 test -s incompat4.E || rm -f incompat4.E
2145 _POSIX2_VERSION=199209 $xx -C -o /dev/null $srcdir/incompat5.I > incompat5.O 2> incompat5.E
2146 code=$?
2147 if test $code != 2; then
2148   $echo "Test incompat5(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
2149   errors=`expr $errors + 1`
2150 else
2151   cmp incompat5.O $srcdir/incompat5.X > /dev/null 2>&1
2152   case $? in
2153     0) if test "$VERBOSE"; then $echo "passed incompat5(_POSIX2_VERSION=199209)"; fi;;
2154     1) $echo "Test incompat5(_POSIX2_VERSION=199209) failed: files incompat5.O and $srcdir/incompat5.X differ" 1>&2
2155        (diff -c incompat5.O $srcdir/incompat5.X) 2> /dev/null
2156        errors=`expr $errors + 1`;;
2157     2) $echo "Test incompat5(_POSIX2_VERSION=199209) may have failed." 1>&2
2158        $echo The command "cmp incompat5.O $srcdir/incompat5.X" failed. 1>&2
2159        errors=`expr $errors + 1`;;
2160   esac
2161 fi
2162 test -s incompat5.E || rm -f incompat5.E
2163 _POSIX2_VERSION=199209 $xx -cC $srcdir/incompat6.I > incompat6.O 2> incompat6.E
2164 code=$?
2165 if test $code != 2; then
2166   $echo "Test incompat6(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
2167   errors=`expr $errors + 1`
2168 else
2169   cmp incompat6.O $srcdir/incompat6.X > /dev/null 2>&1
2170   case $? in
2171     0) if test "$VERBOSE"; then $echo "passed incompat6(_POSIX2_VERSION=199209)"; fi;;
2172     1) $echo "Test incompat6(_POSIX2_VERSION=199209) failed: files incompat6.O and $srcdir/incompat6.X differ" 1>&2
2173        (diff -c incompat6.O $srcdir/incompat6.X) 2> /dev/null
2174        errors=`expr $errors + 1`;;
2175     2) $echo "Test incompat6(_POSIX2_VERSION=199209) may have failed." 1>&2
2176        $echo The command "cmp incompat6.O $srcdir/incompat6.X" failed. 1>&2
2177        errors=`expr $errors + 1`;;
2178   esac
2179 fi
2180 test -s incompat6.E || rm -f incompat6.E
2181 _POSIX2_VERSION=199209 $xx -k2,2 -t '\0' $srcdir/nul-tab.I > nul-tab.O 2> nul-tab.E
2182 code=$?
2183 if test $code != 0; then
2184   $echo "Test nul-tab(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
2185   errors=`expr $errors + 1`
2186 else
2187   cmp nul-tab.O $srcdir/nul-tab.X > /dev/null 2>&1
2188   case $? in
2189     0) if test "$VERBOSE"; then $echo "passed nul-tab(_POSIX2_VERSION=199209)"; fi;;
2190     1) $echo "Test nul-tab(_POSIX2_VERSION=199209) failed: files nul-tab.O and $srcdir/nul-tab.X differ" 1>&2
2191        (diff -c nul-tab.O $srcdir/nul-tab.X) 2> /dev/null
2192        errors=`expr $errors + 1`;;
2193     2) $echo "Test nul-tab(_POSIX2_VERSION=199209) may have failed." 1>&2
2194        $echo The command "cmp nul-tab.O $srcdir/nul-tab.X" failed. 1>&2
2195        errors=`expr $errors + 1`;;
2196   esac
2197 fi
2198 test -s nul-tab.E || rm -f nul-tab.E
2199 _POSIX2_VERSION=199209 $xx -k 340282366920938463463374607431768211456 $srcdir/bigfield.I > bigfield.O 2> bigfield.E
2200 code=$?
2201 if test $code != 0; then
2202   $echo "Test bigfield(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
2203   errors=`expr $errors + 1`
2204 else
2205   cmp bigfield.O $srcdir/bigfield.X > /dev/null 2>&1
2206   case $? in
2207     0) if test "$VERBOSE"; then $echo "passed bigfield(_POSIX2_VERSION=199209)"; fi;;
2208     1) $echo "Test bigfield(_POSIX2_VERSION=199209) failed: files bigfield.O and $srcdir/bigfield.X differ" 1>&2
2209        (diff -c bigfield.O $srcdir/bigfield.X) 2> /dev/null
2210        errors=`expr $errors + 1`;;
2211     2) $echo "Test bigfield(_POSIX2_VERSION=199209) may have failed." 1>&2
2212        $echo The command "cmp bigfield.O $srcdir/bigfield.X" failed. 1>&2
2213        errors=`expr $errors + 1`;;
2214   esac
2215 fi
2216 test -s bigfield.E || rm -f bigfield.E
2217 if test $errors = 0; then
2218   $echo Passed all 122 tests. 1>&2
2219 else
2220   $echo Failed $errors tests. 1>&2
2221 fi
2222 test $errors = 0 || errors=1
2223 exit $errors