1
getopts: usage: getopts optstring name [arg]
3
getopts: usage: getopts optstring name [arg]
5
./getopts.tests: line 10: getopts: -a: invalid option
6
getopts: usage: getopts optstring name [arg]
9
remaining args: one two three
12
remaining args: one two three four five six seven eight nine ten eleven twelve
13
./getopts1.sub: option requires an argument -- b
14
Usage: ./getopts1.sub [-a] [-b value] args
20
remaining args: one two three four five
23
remaining args: one two three
26
remaining args: one two three
27
./getopts4.sub: error: option `b' requires an argument
28
Usage: ./getopts4.sub [-a] [-b value] args
29
./getopts4.sub: error: illegal option character `c'
30
Usage: ./getopts4.sub [-a] [-b value] args
32
remaining args: -b bval one two three
39
./getopts5.sub: illegal option -- c
41
./getopts5.sub: illegal option -- d
43
./getopts5.sub: illegal option -- e
55
./getopts7.sub: line 4: getopts: `opt-var': not a valid identifier