aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-getopts/getopt_test_libc_bug.right
blob: 6694e8f0cfa2c407174067f1e8d48f0829a7ecde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
*** optstring:'ac' args:-a -b -c -d e
1 rc:0 var:'a' OPTIND:2 OPTARG:''
./getopt_test_libc_bug.tests: invalid option -- b
2 rc:0 var:'?' OPTIND:3 OPTARG:''
3 rc:0 var:'c' OPTIND:4 OPTARG:''
./getopt_test_libc_bug.tests: invalid option -- d
4 rc:0 var:'?' OPTIND:5 OPTARG:''
5 rc:1 var:'?' OPTIND:5 OPTARG:''

*** optstring:'ac' args:-a -b -c -d e
1 rc:0 var:'a' OPTIND:2 OPTARG:''
./getopt_test_libc_bug.tests: invalid option -- b
2 rc:0 var:'?' OPTIND:3 OPTARG:''
3 rc:0 var:'c' OPTIND:4 OPTARG:''
./getopt_test_libc_bug.tests: invalid option -- d
4 rc:0 var:'?' OPTIND:5 OPTARG:''
5 rc:1 var:'?' OPTIND:5 OPTARG:''

*** optstring:'ac' args:-a -b -c -d e
1 rc:0 var:'a' OPTIND:2 OPTARG:''
./getopt_test_libc_bug.tests: invalid option -- b
2 rc:0 var:'?' OPTIND:3 OPTARG:''
3 rc:0 var:'c' OPTIND:4 OPTARG:''
./getopt_test_libc_bug.tests: invalid option -- d
4 rc:0 var:'?' OPTIND:5 OPTARG:''
5 rc:1 var:'?' OPTIND:5 OPTARG:''